Function at 0x565914
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
call fcn.00404fdc
xor eax, eax
push ebp
push 0x565b0f
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004dce90
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
cmp dword [ebp + 8], 0
jne 0x565975
lea edx, [ebp + 8]
mov eax, dword [0x58ef8c]
mov eax, dword [eax]
call fcn.00467e08
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x565a92
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
call fcn.00404fec
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test al, al
je 0x565a88
mov eax, dword [ebp - 0x14]
push eax
push 2
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
call fcn.00404fec
push eax
call sub.version.dll_GetFileVersionInfoA
mov edx, 0x565b24
lea eax, [ebp - 0x130]
call fcn.0040a58c
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.version.dll_VerQueryValueA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x29], al
cmp byte [ebp - 0x29], 0
je 0x565a76
mov eax, dword [ebp - 0x28]
test al, al
je 0x565a76
mov eax, dword [ebp - 0x24]
test al, al
je 0x565a76
mov eax, dword [ebp - 0x24]
mov esi, eax
lea edi, [ebp - 0x164]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x15c]
call fcn.00407fa0
movzx eax, ax
mov edx, dword [ebp - 4]
mov dword [edx], eax
movzx eax, word [ebp - 0x15c]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 0x158]
call fcn.00407fa0
movzx eax, ax
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
movzx eax, word [ebp - 0x158]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GlobalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x565a9c
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 0xa
jg 0x565ab1
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x56597a
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x565af5
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x565af5
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x565af5
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x565af5
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
mov dword [eax], 1
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
jmp 0x565af9
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x565b16
lea eax, [ebp + 8]
call fcn.00404b20
ret