Function at 0x5a9a40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405168
xor eax, eax
push ebp
push 0x5a9d35
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 4]
mov edx, 0x5a9d4c
call fcn.00404d00
lea eax, [esi + 8]
mov edx, 0x5a9d4c
call fcn.00404d00
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.0040b838
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.00404d00
xor edx, edx
push ebp
push 0x5a9ce7
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.0040b3a0
test al, al
jne 0x5a9ad9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a9cfd
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405178
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x5a9cdd
mov eax, dword [ebp - 8]
call fcn.0040a748
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x5a9cd6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
test bl, bl
je 0x5a9b43
lea eax, [ebp - 0x24]
mov edx, 0x5a9d58
call fcn.00404d44
lea eax, [ebp - 0x20]
mov edx, 0x5a9d68
call fcn.00404d44
jmp 0x5a9ba4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x5a9d70
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x5a9ba4
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.00408558
movzx eax, ax
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
lea edx, [ebp - 0x38]
xor ecx, ecx
mov eax, 0x5a9d94
call fcn.0040c1cc
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
lea edx, [ebp - 0x38]
xor ecx, ecx
mov eax, 0x5a9d94
call fcn.0040c1cc
push 0x5a9da4
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push 0x5a9dbc
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00405040
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
mov ecx, 0x5a9dc8
mov edx, dword [ebp - 0x28]
call fcn.00404fcc
mov eax, dword [ebp - 0x3c]
call fcn.00405178
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x5a9c01
lea eax, [esi + 4]
mov edx, dword [ebp - 0x2c]
call fcn.00404e9c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
mov ecx, 0x5a9de0
mov edx, dword [ebp - 0x28]
call fcn.00404fcc
mov eax, dword [ebp - 0x40]
call fcn.00405178
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x5a9c39
mov eax, esi
mov edx, dword [ebp - 0x2c]
call fcn.00404e9c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
mov ecx, 0x5a9df4
mov edx, dword [ebp - 0x28]
call fcn.00404fcc
mov eax, dword [ebp - 0x44]
call fcn.00405178
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x5a9cbd
lea eax, [esi + 8]
mov edx, dword [ebp - 0x2c]
call fcn.00404e9c
mov al, byte [0x5a9e00]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [esi + 8]
xor ecx, ecx
mov edx, 0x5a9e0c
call fcn.0041013c
mov edx, dword [ebp - 0x48]
lea eax, [esi + 8]
call fcn.00404d00
mov al, byte [0x5a9e00]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [esi + 8]
mov ecx, 0x5a9e18
mov edx, 0x5a9e24
call fcn.0041013c
mov edx, dword [ebp - 0x4c]
lea eax, [esi + 8]
call fcn.00404d00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a9cdd
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00402aa8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a9cfd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a9d3c
lea eax, [ebp - 0x4c]
mov edx, 5
call fcn.00404cd0
lea eax, [ebp - 0x30]
call fcn.00404cac
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404cd0
lea eax, [ebp - 4]
call fcn.00404cac
ret