Function at 0x4ba324
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ba559
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402c64
mov eax, dword [ebp - 0x18]
call fcn.004052ac
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x4ba4b8
mov eax, ebx
call fcn.004028a0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4ba4b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
push 0
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00402c64
mov eax, dword [ebp - 0x1c]
call fcn.004052ac
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4ba47d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4ba568
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x41], 0
je 0x4ba415
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebx + 8]
call fcn.0040825c
movzx eax, ax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
movzx eax, word [ebx + 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x4ba574
call fcn.0040af98
jmp 0x4ba49b
mov eax, dword [ebx + 8]
call fcn.0040825c
movzx eax, ax
lea edx, [ebp - 0x30]
call fcn.00409af0
push dword [ebp - 0x30]
push 0x4ba584
lea edx, [ebp - 0x34]
movzx eax, word [ebx + 8]
call fcn.00409af0
push dword [ebp - 0x34]
push 0x4ba584
mov eax, dword [ebx + 0xc]
call fcn.0040825c
movzx eax, ax
lea edx, [ebp - 0x38]
call fcn.00409af0
push dword [ebp - 0x38]
push 0x4ba584
lea edx, [ebp - 0x3c]
movzx eax, word [ebx + 0xc]
call fcn.00409af0
push dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
mov edx, 7
call fcn.0040516c
jmp 0x4ba49b
mov eax, dword [ebp - 8]
call fcn.00404dec
mov eax, dword [ebp - 4]
cmp word [eax + 0x4a], 0
je 0x4ba49b
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x4c]
call dword [ebx + 0x48]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba4d6
mov eax, dword [ebp - 0x10]
call fcn.004028c0
ret
mov eax, dword [ebp - 8]
call fcn.00404dec
mov eax, dword [ebp - 4]
cmp word [eax + 0x52], 0
je 0x4ba4d6
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x54]
call dword [ebx + 0x50]
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4ba531
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
je 0x4ba50c
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.004ba61c
push dword [ebp - 0x40]
push 0x4ba590
mov eax, dword [ebp - 8]
push dword [eax]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.0040516c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x40], 0
je 0x4ba531
push 0x4ba59c
mov eax, dword [ebp - 8]
push dword [eax]
push 0x4ba5a8
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.0040516c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba560
lea eax, [ebp - 0x40]
mov edx, 5
call fcn.00404e10
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404e10
ret