Function at 0x5902f8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x590301
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404344
xor eax, eax
push ebp
push 0x59079a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403fa8
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
call fcn.00404354
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jbe 0x59060e
mov eax, esi
call fcn.00402758
mov dword [ebx + 0x358], eax
mov eax, dword [ebx + 0x358]
push eax
push esi
push 0
mov eax, dword [ebp - 8]
call fcn.00404354
push eax
call sub.version.dll_GetFileVersionInfoA
mov eax, dword [ebx + 0x358]
test eax, eax
je 0x5903d4
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x10]
push edx
push 0x5907a8
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
shr eax, 0x10
mov dword [ebx + 0x30c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
and eax, 0xffff
mov dword [ebx + 0x310], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
shr eax, 0x10
mov dword [ebx + 0x314], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
and eax, 0xffff
mov dword [ebx + 0x318], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5907ac
mov eax, dword [ebx + 0x358]
push eax
call sub.version.dll_VerQueryValueA
cmp dword [ebp - 0xc], 0
jbe 0x590440
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
mov dword [ebx + 0x2dc], esi
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
and eax, 0xffff
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
shr esi, 0x10
and esi, 0xffff
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x5907d0
call fcn.0040a6b0
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x2e0]
call fcn.00403f64
lea ecx, [ebp - 0x30]
mov edx, 0x5907e4
mov eax, ebx
call fcn.0058f988
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x2e4]
call fcn.00403f64
lea ecx, [ebp - 0x34]
mov edx, 0x5907f8
mov eax, ebx
call fcn.0058f988
mov edx, dword [ebp - 0x34]
lea eax, [ebx + 0x2e8]
call fcn.00403f64
lea ecx, [ebp - 0x38]
mov edx, 0x590810
mov eax, ebx
call fcn.0058f988
mov edx, dword [ebp - 0x38]
lea eax, [ebx + 0x2ec]
call fcn.00403f64
lea ecx, [ebp - 0x3c]
mov edx, 0x590824
mov eax, ebx
call fcn.0058f988
mov edx, dword [ebp - 0x3c]
lea eax, [ebx + 0x2f0]
call fcn.00403f64
lea ecx, [ebp - 0x40]
mov edx, 0x59083c
mov eax, ebx
call fcn.0058f988
mov edx, dword [ebp - 0x40]
lea eax, [ebx + 0x2f4]
call fcn.00403f64
lea ecx, [ebp - 0x44]
mov edx, 0x590854
mov eax, ebx
call fcn.0058f988
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x2f8]
call fcn.00403f64
lea ecx, [ebp - 0x48]
mov edx, 0x59086c
mov eax, ebx
call fcn.0058f988
mov edx, dword [ebp - 0x48]
lea eax, [ebx + 0x2fc]
call fcn.00403f64
lea ecx, [ebp - 0x4c]
mov edx, 0x590888
mov eax, ebx
call fcn.0058f988
mov edx, dword [ebp - 0x4c]
lea eax, [ebx + 0x300]
call fcn.00403f64
lea ecx, [ebp - 0x50]
mov edx, 0x59089c
mov eax, ebx
call fcn.0058f988
mov edx, dword [ebp - 0x50]
lea eax, [ebx + 0x304]
call fcn.00403f64
lea ecx, [ebp - 0x54]
mov edx, 0x5908b4
mov eax, ebx
call fcn.0058f988
mov edx, dword [ebp - 0x54]
lea eax, [ebx + 0x308]
call fcn.00403f64
lea eax, [ebx + 0x32c]
mov edx, dword [ebx + 0x2e4]
call fcn.00403f64
lea eax, [ebx + 0x330]
mov edx, dword [ebx + 0x2e8]
call fcn.00403f64
lea eax, [ebx + 0x334]
mov edx, dword [ebx + 0x2ec]
call fcn.00403f64
lea eax, [ebx + 0x338]
mov edx, dword [ebx + 0x2f0]
call fcn.00403f64
lea eax, [ebx + 0x33c]
mov edx, dword [ebx + 0x2f4]
call fcn.00403f64
lea eax, [ebx + 0x340]
mov edx, dword [ebx + 0x2f8]
call fcn.00403f64
lea eax, [ebx + 0x344]
mov edx, dword [ebx + 0x2fc]
call fcn.00403f64
lea eax, [ebx + 0x348]
mov edx, dword [ebx + 0x300]
call fcn.00403f64
lea eax, [ebx + 0x34c]
mov edx, dword [ebx + 0x304]
call fcn.00403f64
lea eax, [ebx + 0x350]
mov edx, dword [ebx + 0x308]
call fcn.00403f64
jmp 0x590629
xor esi, esi
mov dword [ebx + 0x358], esi
mov eax, edi
call fcn.00403f10
mov eax, esi
call fcn.00402770
jmp 0x59075a
mov dword [ebx + 0x354], 0xa
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 8]
call fcn.00409adc
mov edx, dword [ebp - 0x58]
lea eax, [ebx + 0x31c]
call fcn.00403f64
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 8]
call fcn.00409c00
mov edx, dword [ebp - 0x5c]
lea eax, [ebx + 0x320]
call fcn.00403f64
lea edx, [ebp - 0x60]
mov eax, dword [0x6454e4]
mov eax, dword [eax]
call fcn.00453a78
mov edx, dword [ebp - 0x60]
lea eax, [ebx + 0x324]
call fcn.00403f64
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx + 0x30c]
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x80], 0
mov eax, dword [ebx + 0x310]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x78], 0
mov eax, dword [ebx + 0x314]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0
mov eax, dword [ebx + 0x318]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0
lea edx, [ebp - 0x84]
mov ecx, 3
mov eax, 0x5908c8
call fcn.0040a6b0
mov edx, dword [ebp - 0x64]
lea eax, [ebx + 0x328]
call fcn.00403f64
mov eax, dword [ebx + 0x358]
call fcn.00402770
lea edx, [ebp - 0x88]
mov eax, dword [ebx + 0x2f4]
call fcn.00408fbc
mov edx, dword [ebp - 0x88]
mov eax, 0x5908dc
call fcn.0040447c
test eax, eax
jle 0x59071f
mov eax, edi
mov edx, dword [ebx + 0x2e4]
call fcn.00403f64
jmp 0x59075a
lea edx, [ebp - 0x8c]
mov eax, dword [ebx + 0x2e4]
call fcn.00408fbc
mov edx, dword [ebp - 0x8c]
mov eax, 0x5908dc
call fcn.0040447c
test eax, eax
jne 0x590753
mov eax, edi
mov edx, dword [ebx + 0x2e4]
call fcn.00403f64
jmp 0x59075a
mov eax, edi
call fcn.00403f10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5907a1
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.00403f34
lea eax, [ebp - 0x64]
mov edx, 0xe
call fcn.00403f34
lea eax, [ebp - 0x1c]
call fcn.00403f10
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403f34
ret