Function at 0x401890
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8f90
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4e06b8]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x48], 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00404260
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40190c
push 0x4c5e14
mov ecx, dword [ebp + 8]
call fcn.00404bb0
mov eax, dword [ebp - 0x5c]
or eax, 1
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
jmp 0x401a95
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004819f2
add esp, 4
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00404260
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40196e
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
push eax
call fcn.00482e51
add esp, 4
push 0x4c5e18
mov ecx, dword [ebp + 8]
call fcn.00404bb0
mov ecx, dword [ebp - 0x5c]
or ecx, 1
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp + 8]
jmp 0x401a95
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
push 0x4c5e1c
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
and ecx, 0xffff
movzx edx, cx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
and ecx, 0xffff
movzx eax, cx
and eax, 0xffff
movzx ecx, ax
shl ecx, 0x10
or edx, ecx
mov dword [ebp - 0x4c], edx
lea ecx, [ebp - 0x44]
call fcn.00403600
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
call fcn.00404260
push eax
mov edx, dword [ebp - 0x4c]
push edx
push str.StringFileInfo_08lx_s
lea eax, [ebp - 0x44]
push eax
call fcn.00402f60
add esp, 0x10
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x44]
call fcn.0040a2e0
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x401a52
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.00482e51
add esp, 4
push 0x4c5e84
mov ecx, dword [ebp + 8]
call fcn.00404bb0
mov eax, dword [ebp - 0x5c]
or eax, 1
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00404200
mov eax, dword [ebp + 8]
jmp 0x401a95
mov ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00404bb0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x3c]
push edx
mov ecx, dword [ebp + 8]
call fcn.004025e0
mov eax, dword [ebp - 0x5c]
or eax, 1
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00404310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00404200
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00482469
mov esp, ebp
pop ebp
ret