Function at 0x42f958
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff08
push ebx
push esi
push edi
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
mov eax, 0x53f328
call fcn.00524684
xor edx, edx
mov dword [ebp - 0x48], edx
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
xor eax, eax
mov dword [ebp - 0x50], eax
xor edx, edx
mov dword [ebp - 0x54], edx
mov word [ebp - 0x2c], 8
lea eax, [ebp - 0x10]
call fcn.00433814
inc dword [ebp - 0x20]
lea eax, [ebp - 8]
call fcn.00433814
inc dword [ebp - 0x20]
inc dword [ebp - 0x20]
mov word [ebp - 0x2c], 0x14
mov byte [ebp - 0x61], 0
mov ecx, 0x53f047
mov edx, 0x53f040
lea eax, [ebp - 0x10]
call fcn.004338b4
push 0
mov word [ebp - 0x2c], 0x20
lea eax, [ebp - 0x14]
call fcn.00420234
mov edx, eax
inc dword [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.004339a0
lea eax, [ebp - 0x14]
call fcn.004213c4
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov dword [ebp - 0x48], eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0052f334
cmp dword [ebp - 0x48], 0
jbe 0x42fabb
push dword [ebp - 0x48]
call fcn.0052370c
pop ecx
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
push 0
mov word [ebp - 0x2c], 0x2c
lea eax, [ebp - 0x18]
call fcn.00420234
mov edx, eax
inc dword [ebp - 0x20]
lea eax, [ebp - 0x10]
call fcn.004339a0
lea eax, [ebp - 0x18]
call fcn.004213c4
push eax
call sub.VERSION.DLL_GetFileVersionInfoA
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0052f334
pop ecx
test ecx, ecx
je 0x42faac
lea eax, [ebp - 0x54]
push eax
lea edx, [ebp - 0x50]
push edx
push 0x53f04e
push dword [ebp - 0x4c]
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x42faa6
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx + 0x10]
shr eax, 0x10
and eax, 0xffff
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x50]
movzx ecx, word [edx + 0x10]
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 0x14]
shr edx, 0x10
and edx, 0xffff
mov dword [ebp - 0x60], edx
jmp 0x42fab0
mov byte [ebp - 0x61], 1
jmp 0x42fab0
mov byte [ebp - 0x61], 1
push dword [ebp - 0x4c]
call fcn.00523544
pop ecx
jmp 0x42fabf
mov byte [ebp - 0x61], 1
cmp byte [ebp - 0x61], 0
je 0x42fb51
mov byte [ebp - 0x61], 0
mov word [ebp - 0x2c], 0x38
push edx
mov edx, dword fs:[0x30]
mov eax, dword [edx + 0xa4]
mov dword [ebp - 0x58], eax
mov eax, dword [edx + 0xa8]
mov dword [ebp - 0x5c], eax
mov eax, dword [edx + 0xac]
mov dword [ebp - 0x60], eax
pop edx
mov word [ebp - 0x2c], 0x14
jmp 0x42fb51
cmp byte [ebp - 0x61], 0
je 0x42fb5f
mov edx, dword [ebp - 0x40]
mov word [edx], 0xa
cmp dword [ebp - 0x44], 0
je 0x42fbb9
push 0x94
push 0
push dword [ebp - 0x44]
call fcn.00524368
add esp, 0xc
mov ecx, dword [ebp - 0x44]
mov dword [ecx], 0x94
push dword [ebp - 0x44]
call sub.KERNEL32.DLL_GetVersionExA
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x58]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x5c]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x60]
mov dword [edx + 0xc], ecx
push 0x80
push 0
mov eax, dword [ebp - 0x44]
add eax, 0x14
push eax
call fcn.00524368
add esp, 0xc
mov eax, dword [ebp - 0x58]
push eax
dec dword [ebp - 0x20]
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00433878
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00433878
pop eax
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret