Function at 0x58f428
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x58f454
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x58f45f
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x58f660
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406d80
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00406d80
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x58f63d
mov eax, dword [ebp - 0x1c]
call fcn.004030fc
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x58f636
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
call sub.version.dll_GetFileVersionInfoW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x25], al
cmp byte [ebp - 0x25], 0
jne 0x58f4ee
call fcn.00405448
jmp 0x58f63d
lea eax, [ebp - 0x2c]
mov edx, 0x58f67c
call fcn.00406dd4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x58f690
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x58f56a
mov eax, dword [ebp - 0x30]
cmp word [eax], 0
jne 0x58f526
mov eax, dword [ebp - 0x30]
mov word [eax], 0x409
mov eax, dword [ebp - 0x30]
cmp word [eax + 2], 0
jne 0x58f539
mov eax, dword [ebp - 0x30]
mov word [eax + 2], 0x4e4
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
movzx eax, word [eax]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
mov eax, dword [ebp - 0x30]
movzx eax, word [eax + 2]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
lea edx, [ebp - 0x40]
mov ecx, 1
mov eax, 0x58f6d0
call fcn.0047b9a8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x58f6f0
push dword [ebp - 0x2c]
push 0x58f720
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00407348
mov eax, dword [ebp - 0x44]
call fcn.00406e0c
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x25], al
cmp byte [ebp - 0x25], 0
je 0x58f5c7
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x18]
call fcn.0047b7d0
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 8]
call fcn.00406d80
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x58f6f0
push dword [ebp - 0x2c]
push 0x58f748
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00407348
mov eax, dword [ebp - 0x4c]
call fcn.00406e0c
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x25], al
cmp byte [ebp - 0x25], 0
je 0x58f620
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x18]
call fcn.0047b7d0
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0xc]
call fcn.00406d80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58f63d
mov eax, dword [ebp - 0x14]
call fcn.00403118
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58f667
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00406d78
lea eax, [ebp - 0x2c]
call fcn.00406d70
ret