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

Disassembly:
push 0xffffffffffffffff
push 0x42bbfb
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x441dac]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x441dac]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
call fcn.0040f911
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4076d7
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 [0x4432d4], 0
mov dword [esp + 0x44c], ebx
jne 0x407727
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 0x4079fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4079fa
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 0x4076f7
push 0x104
lea ecx, [esp + 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4077a4
push str.Error_:_Get_windows_path_error_n
call fcn.00404820
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 0x407712
xor eax, eax
jmp 0x4077b0
mov cl, byte [esp + eax + 0x238]
mov byte [esp + eax + 0x30], cl
add eax, 1
test cl, cl
jne 0x4077b0
lea ecx, [esp + 0x134]
push str._system32driverswdf01000.sys
push ecx
call fcn.00419ba9
lea eax, [esp + 0x13c]
add esp, 8
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4077e0
lea edi, [esp + 0x30]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4077f2
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.0040f57a
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4079f1
push edi
push ebx
push esi
call fcn.00418130
add esp, 0xc
push esi
push edi
push ebx
lea eax, [esp + 0x3c]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x407856
push esi
call fcn.0040f57f
add esp, 4
jmp 0x4079f1
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x42f3dc
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x407848
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.00419ba9
lea edx, [esp + 0x354]
push str.176001
push edx
call fcn.00417c00
add esp, 0x20
test eax, eax
push esi
je 0x407849
call fcn.0040f57f
push esi
lea eax, [esp + 0x1c]
push str._nInfo__:_Find_beta_wdf1.07__delete_it._n_n
push eax
call fcn.00403ab0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00404820
lea edx, [esp + 0x44]
push edx
call fcn.00401af0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x18
test al, al
jne 0x407952
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.00403ab0
mov edx, dword [esp + 0x24]
push edx
call fcn.00404820
add esp, 0x14
xor eax, eax
jmp 0x407960
mov cl, byte [esp + eax + 0x238]
mov byte [esp + eax + 0x30], cl
add eax, 1
test cl, cl
jne 0x407960
lea eax, [esp + 0x134]
push str._system32driverswdfldr.sys
push eax
call fcn.00419ba9
lea eax, [esp + 0x13c]
add esp, 8
mov edx, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407990
lea edi, [esp + 0x30]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4079a2
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.00401af0
add esp, 4
test al, al
jne 0x4079f1
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.00403ab0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00404820
add esp, 0x14
lea ecx, [esp + 0x14]
call fcn.004023c0
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.0041811d
add esp, 0x43c
ret