Function at 0x407e40
Capabilities:
Check if file exists
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x428fc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
lea eax, [esp + 0x1c]
push edi
xor edi, edi
push eax
push ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
mov ebx, 1
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
je 0x407fd4
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x20]
mov edi, eax
push edi
push esi
push ecx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
cmp dword [esp + 0x18], 4
jne 0x407fc8
lea ecx, [esp + 0x3c]
call fcn.0041c86d
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], esi
call fcn.0041c86d
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
mov byte [esp + 0x34], bl
mov edx, dword [ecx]
push edx
push str._08x
push eax
call fcn.00417d20
add esp, 0xc
lea ecx, [esp + 0x28]
push 4
push ecx
lea ecx, [esp + 0x44]
call fcn.00417986
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 2
call fcn.0041cab1
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], bl
call fcn.0041c9b8
lea edx, [esp + 0x28]
push 4
push edx
lea ecx, [esp + 0x44]
call fcn.00417a03
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 3
call fcn.0041ccdd
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], bl
call fcn.0041c9b8
push str.StringFileInfo_
lea ecx, [esp + 0x40]
call fcn.0041cb00
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x3c]
push eax
call fcn.0041ccdd
push str.FileVersion
lea ecx, [esp + 0x40]
call fcn.0041cca1
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
cmp dword [esp + 0x18], ebx
jae 0x407fa5
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 0
call fcn.0041c9b8
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call fcn.0041c9b8
xor edi, edi
jmp 0x407fe1
mov dword [esp + 0x10], 0
xor edi, edi
jmp 0x407fe1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x407fe1
xor ebx, ebx
lea ecx, [esp + 0x14]
call fcn.0041c86d
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 4
cmp eax, edi
je 0x40803e
push eax
call fcn.00409e50
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
cmp byte [ecx - 1], 0x31
lea eax, [ecx - 1]
jge 0x408029
dec ecx
mov byte [eax], 0
cmp byte [ecx - 1], 0x31
lea eax, [ecx - 1]
jl 0x40801c
push edx
lea ecx, [esp + 0x18]
call fcn.0041cb00
lea ecx, [esp + 0x14]
call fcn.0041cdcc
jmp 0x40804c
push 0x4371f4
lea ecx, [esp + 0x18]
call fcn.0041cb00
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x24]
test esi, esi
je 0x408085
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0xffffffff
call fcn.0041c9b8
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret 8