Function at 0x401890
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8850
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5176f0]
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.004041a0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40190c
push 0x4fd7f8
mov ecx, dword [ebp + 8]
call fcn.00404aa0
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.004ad653
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.004041a0
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.004aeb11
add esp, 4
push 0x4fd7fc
mov ecx, dword [ebp + 8]
call fcn.00404aa0
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 0x4fd800
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.00403540
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
call fcn.004041a0
push eax
mov edx, dword [ebp - 0x4c]
push edx
push str.StringFileInfo_08lx_s
lea eax, [ebp - 0x44]
push eax
call fcn.00402f20
add esp, 0x10
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x44]
call fcn.00403360
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.004aeb11
add esp, 4
push 0x4fd868
mov ecx, dword [ebp + 8]
call fcn.00404aa0
mov eax, dword [ebp - 0x5c]
or eax, 1
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00404140
mov eax, dword [ebp + 8]
jmp 0x401a95
mov ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00404aa0
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.00404250
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00404140
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.004ae123
mov esp, ebp
pop ebp
ret