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

Disassembly:
push 0xffffffffffffffff
push 0x426f38
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 0x406034
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 0x406028
lea ecx, [esp + 0x3c]
call fcn.0041a7f1
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], esi
call fcn.0041a7f1
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.00415c50
add esp, 0xc
lea ecx, [esp + 0x28]
push 4
push ecx
lea ecx, [esp + 0x44]
call fcn.004158b6
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 2
call fcn.0041aa35
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], bl
call fcn.0041a93c
lea edx, [esp + 0x28]
push 4
push edx
lea ecx, [esp + 0x44]
call fcn.00415933
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 3
call fcn.0041ac61
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], bl
call fcn.0041a93c
push str.StringFileInfo_
lea ecx, [esp + 0x40]
call fcn.0041aa84
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x3c]
push eax
call fcn.0041ac61
push 0x430cd0
lea ecx, [esp + 0x40]
call fcn.0041ac25
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 0x406005
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 0
call fcn.0041a93c
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], 0xffffffff
call fcn.0041a93c
xor edi, edi
jmp 0x406041
mov dword [esp + 0x10], 0
xor edi, edi
jmp 0x406041
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x406041
xor ebx, ebx
lea ecx, [esp + 0x14]
call fcn.0041a7f1
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], 4
cmp eax, edi
je 0x40609e
push eax
call fcn.00407da0
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 0x406089
dec ecx
mov byte [eax], 0
cmp byte [ecx - 1], 0x31
lea eax, [ecx - 1]
jl 0x40607c
push edx
lea ecx, [esp + 0x18]
call fcn.0041aa84
lea ecx, [esp + 0x14]
call fcn.0041ad50
jmp 0x4060ac
push 0x434db4
lea ecx, [esp + 0x18]
call fcn.0041aa84
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 0x4060e5
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.0041a93c
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