Function at 0x4b5d80
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 0x4b6041
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4106ec]
call fcn.00403168
mov ebx, eax
mov edx, 0x4b6058
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x4b606c
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x4b6084
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x4b6098
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x4b60b0
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x4b60c8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x4b60e4
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x4b60f8
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.0040a4d4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x121]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4b601b
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4b6014
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 0xa]
call fcn.004027bc
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 0x4b6108
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x4b5eae
call fcn.004039d0
jmp 0x4b601b
lea edx, [ebp - 0x256]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
call fcn.00402a40
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4b610c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x4b5ee3
call fcn.004039d0
jmp 0x4b601b
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
call fcn.00402a40
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4b5ffe
inc eax
mov dword [ebp - 0x20], eax
xor esi, esi
push 0x4b6130
lea ecx, [ebp - 0x25c]
movzx eax, word [ebp - 0x18]
mov edx, 4
call fcn.00409acc
push dword [ebp - 0x25c]
lea ecx, [ebp - 0x260]
movzx eax, word [ebp - 0x16]
mov edx, 4
call fcn.00409acc
push dword [ebp - 0x260]
push 0x4b614c
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.00404278
lea eax, [ebp - 0x121]
mov edx, dword [ebp - 0x1c]
call fcn.0040a4d4
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 0x4b5f9b
call fcn.004039d0
jmp 0x4b601b
cmp dword [ebp - 8], 0
jbe 0x4b5ff4
lea edx, [ebp - 0x222]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
call fcn.00402a40
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.0040a658
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 0x4b5f07
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b601b
mov eax, dword [ebp - 0x10]
call fcn.004027d4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6048
lea eax, [ebp - 0x26c]
mov edx, 5
call fcn.00403f5c
lea eax, [ebp - 0x1c]
call fcn.00403f38
ret