Function at 0x4035e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e7ba
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0x10]
call fcn.00406900
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406960
mov byte [ebp - 4], 2
mov byte [ebp - 0x29], 0
lea ecx, [ebp - 0x44]
call fcn.00418168
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x28]
call fcn.00406a90
push eax
lea ecx, [ebp - 0x44]
call fcn.004181f6
test eax, eax
je 0x403818
lea eax, [ebp - 0x4c]
push eax
push 0
lea ecx, [ebp - 0x28]
call fcn.00406ab0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
push eax
call fcn.00416652
add esp, 4
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 0
je 0x403744
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0
lea ecx, [ebp - 0x28]
call fcn.00406ab0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x403744
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 0x442694
mov edx, dword [ebp - 0x50]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403744
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 8]
shr ecx, 0x10
movzx edx, cx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
movzx edx, cx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
mov dword [ebp - 0x14], edx
mov byte [ebp - 0x29], 1
cmp dword [ebp - 0x50], 0
je 0x403762
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.0041664d
add esp, 4
movzx eax, byte [ebp - 0x29]
test eax, eax
je 0x4037b1
lea ecx, [ebp - 0x60]
call fcn.00406900
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
push str._d._d._d._d
lea ecx, [ebp - 0x60]
push ecx
call fcn.00407800
add esp, 0x18
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406a00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x60]
call fcn.004069e0
jmp 0x403816
lea eax, [ebp - 0x28]
push eax
push str.File_version_couldn
lea ecx, [ebp - 0xa8]
push ecx
call fcn.00406010
add esp, 0xc
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xb8]
call fcn.00406a90
push eax
push 1
push 0x45858c
call fcn.00416150
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa8]
call fcn.004069e0
push 0x4435d0
lea ecx, [ebp - 0x10]
call fcn.00406a30
jmp 0x40383d
mov eax, dword [ebp - 0x28]
push eax
push str.GetFileVers:_File_not_found:__s
push 0xa
push 0x45858c
call fcn.00416150
add esp, 0x10
push 0x443588
lea ecx, [ebp - 0x10]
call fcn.00406a30
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406930
mov ecx, dword [ebp - 0xa4]
or ecx, 1
mov dword [ebp - 0xa4], ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.0041818e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004069e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004069e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret