Function at 0x406de0
Capabilities:
Get common file path
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x42893b
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x43e6bc]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43e6bc]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
call fcn.0040d647
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406e37
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
cmp byte [0x43fbf4], 0
mov dword [esp + 0x44c], ebx
jne 0x406e87
lea eax, [esi - 0x10]
mov dword [esp + 0x44c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40715a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40715a
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SYSTEMCurrentControlSetServicesWdf01000Parameters
push 0x80000002
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x1c], 2
je 0x406e57
push 0x104
lea ecx, [esp + 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x406f04
push str.Error_:_Get_windows_path_error_n
call fcn.00403d60
lea eax, [esi - 0x10]
add esp, 4
mov dword [esp + 0x44c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x406e72
xor eax, eax
jmp 0x406f10
mov cl, byte [esp + eax + 0x238]
mov byte [esp + eax + 0x30], cl
add eax, 1
test cl, cl
jne 0x406f10
lea ecx, [esp + 0x134]
push str._system32driverswdf01000.sys
push ecx
call fcn.00416ae4
lea eax, [esp + 0x13c]
add esp, 8
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406f40
lea edi, [esp + 0x30]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x406f52
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
lea edx, [esp + 0x34]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
push edi
call fcn.0040d16f
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x407151
push edi
push ebx
push esi
call fcn.00416150
add esp, 0xc
push esi
push edi
push ebx
lea eax, [esp + 0x3c]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x406fb6
push esi
call fcn.0040d16a
add esp, 4
jmp 0x407151
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x42b460
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x406fa8
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push ecx
call edi
mov edx, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [edx + 0xc]
push eax
mov dword [esp + 0x2c], ebx
call edi
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov ebp, eax
mov ecx, ebp
shr ecx, 0x10
push ecx
mov dword [esp + 0x30], ebp
call edi
movzx edx, ax
push edx
push ebp
call edi
mov ecx, dword [esp + 0x2e]
movzx eax, ax
push eax
push ecx
call edi
movzx edx, ax
push edx
push ebx
call edi
movzx eax, ax
push eax
lea ecx, [esp + 0x34c]
push str._d_d_d_d
push ecx
call fcn.00416ae4
lea edx, [esp + 0x354]
push str.176001
push edx
call fcn.00415c20
add esp, 0x20
test eax, eax
push esi
je 0x406fa9
call fcn.0040d16a
push esi
lea eax, [esp + 0x1c]
push str._nInfo__:_Find_beta_wdf1.07__delete_it._n_n
push eax
call fcn.004034f0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00403d60
lea edx, [esp + 0x44]
push edx
call fcn.00401b50
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x18
test al, al
jne 0x4070b2
call ebx
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
push str.Error_:_Remove_file___s__fail__err:__d_n
push ecx
call fcn.004034f0
mov edx, dword [esp + 0x24]
push edx
call fcn.00403d60
add esp, 0x14
xor eax, eax
jmp 0x4070c0
mov cl, byte [esp + eax + 0x238]
mov byte [esp + eax + 0x30], cl
add eax, 1
test cl, cl
jne 0x4070c0
lea eax, [esp + 0x134]
push str._system32driverswdfldr.sys
push eax
call fcn.00416ae4
lea eax, [esp + 0x13c]
add esp, 8
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4070f0
lea edi, [esp + 0x30]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407102
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
call fcn.00401b50
add esp, 4
test al, al
jne 0x407151
call ebx
push eax
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x1c]
push str.Error_:_Remove_file___s__fail__err:__d_n
push eax
call fcn.004034f0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00403d60
add esp, 0x14
lea ecx, [esp + 0x14]
call fcn.004023e0
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.0041613d
add esp, 0x43c
ret