Function at 0x5951d8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x5951e1
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e1c
mov eax, dword [ebp - 8]
call fcn.00404e1c
xor eax, eax
push ebp
push 0x59553d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040495c
lea eax, [ebx + 4]
call fcn.0040495c
lea eax, [ebx + 8]
call fcn.0040495c
lea eax, [ebx + 0xc]
call fcn.0040495c
lea eax, [ebx + 0x10]
call fcn.0040495c
lea eax, [ebx + 0x14]
call fcn.0040495c
lea eax, [ebx + 0x18]
call fcn.0040495c
lea eax, [ebx + 0x1c]
call fcn.0040495c
lea eax, [ebx + 0x20]
call fcn.0040495c
lea eax, [ebx + 0x24]
call fcn.0040495c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e2c
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x59550d
mov eax, dword [ebp - 0xc]
call fcn.004096ac
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x59554c
push esi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x595503
cmp dword [ebp - 8], 0
jne 0x5952f6
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
call fcn.00408240
movzx eax, ax
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x30]
mov ecx, 1
mov eax, 0x595570
call fcn.0040b370
jmp 0x595310
push 0x595594
push dword [ebp - 8]
push 0x5955b0
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404cec
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
mov ecx, 0x5955bc
mov edx, dword [ebp - 0x18]
call fcn.00404c78
mov eax, dword [ebp - 0x34]
call fcn.00404e2c
push eax
push esi
call sub.version.dll_VerQueryValueA
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00404b64
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
mov ecx, 0x5955d0
mov edx, dword [ebp - 0x18]
call fcn.00404c78
mov eax, dword [ebp - 0x38]
call fcn.00404e2c
push eax
push esi
call sub.version.dll_VerQueryValueA
lea eax, [ebx + 4]
mov edx, dword [ebp - 0x14]
call fcn.00404b64
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x3c]
mov ecx, 0x5955e8
mov edx, dword [ebp - 0x18]
call fcn.00404c78
mov eax, dword [ebp - 0x3c]
call fcn.00404e2c
push eax
push esi
call sub.version.dll_VerQueryValueA
lea eax, [ebx + 8]
mov edx, dword [ebp - 0x14]
call fcn.00404b64
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
mov ecx, 0x5955fc
mov edx, dword [ebp - 0x18]
call fcn.00404c78
mov eax, dword [ebp - 0x40]
call fcn.00404e2c
push eax
push esi
call sub.version.dll_VerQueryValueA
lea eax, [ebx + 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00404b64
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x44]
mov ecx, 0x595614
mov edx, dword [ebp - 0x18]
call fcn.00404c78
mov eax, dword [ebp - 0x44]
call fcn.00404e2c
push eax
push esi
call sub.version.dll_VerQueryValueA
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00404b64
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x48]
mov ecx, 0x59562c
mov edx, dword [ebp - 0x18]
call fcn.00404c78
mov eax, dword [ebp - 0x48]
call fcn.00404e2c
push eax
push esi
call sub.version.dll_VerQueryValueA
lea eax, [ebx + 0x14]
mov edx, dword [ebp - 0x14]
call fcn.00404b64
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
mov ecx, 0x595644
mov edx, dword [ebp - 0x18]
call fcn.00404c78
mov eax, dword [ebp - 0x4c]
call fcn.00404e2c
push eax
push esi
call sub.version.dll_VerQueryValueA
lea eax, [ebx + 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00404b64
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x50]
mov ecx, 0x595660
mov edx, dword [ebp - 0x18]
call fcn.00404c78
mov eax, dword [ebp - 0x50]
call fcn.00404e2c
push eax
push esi
call sub.version.dll_VerQueryValueA
lea eax, [ebx + 0x1c]
mov edx, dword [ebp - 0x14]
call fcn.00404b64
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
mov ecx, 0x595674
mov edx, dword [ebp - 0x18]
call fcn.00404c78
mov eax, dword [ebp - 0x54]
call fcn.00404e2c
push eax
push esi
call sub.version.dll_VerQueryValueA
lea eax, [ebx + 0x20]
mov edx, dword [ebp - 0x14]
call fcn.00404b64
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
mov ecx, 0x59568c
mov edx, dword [ebp - 0x18]
call fcn.00404c78
mov eax, dword [ebp - 0x58]
call fcn.00404e2c
push eax
push esi
call sub.version.dll_VerQueryValueA
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0x14]
call fcn.00404b64
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0040293c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x595544
lea eax, [ebp - 0x58]
mov edx, 0xa
call fcn.00404980
lea eax, [ebp - 0x18]
call fcn.0040495c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404980
ret