Function at 0x4b5e9c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd94
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x268], edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b615d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40fd08]
call fcn.0040308c
mov ebx, eax
mov edx, 0x4b6174
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x4b6188
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x4b61a0
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x4b61b4
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x4b61cc
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x4b61e4
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x4b6200
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x4b6214
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x121]
call fcn.00409b44
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x121]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4b6137
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4b6130
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 0xa]
call fcn.004027b4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push esi
push 0
lea eax, [ebp - 0x121]
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4b6224
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x4b5fca
call fcn.004038f4
jmp 0x4b6137
lea edx, [ebp - 0x256]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
call fcn.004029e0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4b6228
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x4b5fff
call fcn.004038f4
jmp 0x4b6137
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
call fcn.004029e0
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4b611a
inc eax
mov dword [ebp - 0x20], eax
xor esi, esi
push 0x4b624c
lea ecx, [ebp - 0x25c]
movzx eax, word [ebp - 0x18]
mov edx, 4
call fcn.00409390
push dword [ebp - 0x25c]
lea ecx, [ebp - 0x260]
movzx eax, word [ebp - 0x16]
mov edx, 4
call fcn.00409390
push dword [ebp - 0x260]
push 0x4b6268
lea ecx, [ebp - 0x264]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x264]
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00404164
lea eax, [ebp - 0x121]
mov edx, dword [ebp - 0x1c]
call fcn.00409b44
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x121]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x4b60b7
call fcn.004038f4
jmp 0x4b6137
cmp dword [ebp - 8], 0
jbe 0x4b6110
lea edx, [ebp - 0x222]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
call fcn.004029e0
lea ecx, [ebp - 0x268]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x268]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea edx, [ebp - 0x26c]
lea eax, [ebp - 0x222]
call fcn.00409cc8
mov edx, dword [ebp - 0x26c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec dword [ebp - 0x20]
jne 0x4b6023
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6137
mov eax, dword [ebp - 0x10]
call fcn.004027cc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6164
lea eax, [ebp - 0x26c]
mov edx, 5
call fcn.00403e48
lea eax, [ebp - 0x1c]
call fcn.00403e24
ret