Function at 0x4d5890
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a117
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.0041d970
mov byte [ebp - 4], 1
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp + 0xc]
call fcn.0041e1e0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x4d5b1d
mov eax, dword [ebp - 0x220]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00553501
add esp, 4
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x220]
push edx
push 0
lea ecx, [ebp + 0xc]
call fcn.0041e1e0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4d59e7
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0x59c8dc
mov edx, dword [ebp - 0x224]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4d59e7
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.005534f6
add esp, 4
push 0x59bf43
mov ecx, dword [ebp + 8]
call fcn.0041da30
mov edx, dword [ebp - 0x248]
or edx, 1
mov dword [ebp - 0x248], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.0041dab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0041dab0
mov eax, dword [ebp + 8]
jmp 0x4d5b5c
mov eax, dword [ebp - 0x218]
movzx ecx, word [eax + 2]
push ecx
mov edx, dword [ebp - 0x218]
movzx eax, word [edx]
push eax
push str.StringFileInfo_04x_04xFileVersion
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0x59c960
mov ecx, dword [ebp - 0x224]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4d5a93
mov edx, dword [ebp - 0x224]
mov dword [ebp - 0x23c], edx
mov eax, dword [ebp - 0x23c]
push eax
call fcn.005534f6
add esp, 4
lea ecx, [ebp - 0x228]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041d990
mov edx, dword [ebp - 0x248]
or edx, 1
mov dword [ebp - 0x248], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.0041dab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0041dab0
mov eax, dword [ebp + 8]
jmp 0x4d5b5c
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x4d5b02
mov ecx, dword [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x240]
call fcn.0041d9b0
mov dword [ebp - 0x24c], eax
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x250], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x250]
push eax
lea ecx, [ebp - 0x228]
call fcn.0041dad0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
call fcn.0041dab0
push 0x59c95c
push 0x59c9ac
lea ecx, [ebp - 0x228]
call fcn.0045f8c0
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x244], ecx
mov edx, dword [ebp - 0x244]
push edx
call fcn.005534f6
add esp, 4
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041d990
mov ecx, dword [ebp - 0x248]
or ecx, 1
mov dword [ebp - 0x248], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.0041dab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0041dab0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055338c
mov esp, ebp
pop ebp
ret