Function at 0x45834c
Capabilities:
Get file version info
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe84
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4587b7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
lea eax, [ebp - 0x130]
call fcn.00408e58
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4583db
call sub.kernel32.dll_GetLastError_1
mov edi, eax
cmp edi, 0x715
jne 0x4583c8
mov edx, 0x64
mov eax, dword [0x457da4]
call fcn.00457f40
test edi, edi
jne 0x4583db
mov edx, 0x65
mov eax, dword [0x457da4]
call fcn.00457f40
mov eax, dword [ebp - 0xc]
call fcn.00402718
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x130]
push eax
call sub.version.dll_GetFileVersionInfoA
cmp eax, 1
sbb eax, eax
inc eax
xor edx, edx
mov dword [ebp - 0x28], edx
xor edx, edx
push ebp
push 0x458785
push dword fs:[edx]
mov dword fs:[edx], esp
test al, al
jne 0x45842a
mov edx, 0x65
mov eax, dword [0x457da4]
call fcn.00457f40
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4587c8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x458459
mov edx, 0x65
mov eax, dword [0x457da4]
call fcn.00457f40
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
call fcn.00402718
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
call fcn.004028d0
mov eax, dword [ebp - 4]
mov byte [eax + 0x38], 1
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
movzx eax, word [eax]
mov dword [ebp - 0x174], eax
mov byte [ebp - 0x170], 0
mov eax, dword [ebp - 0x28]
movzx eax, word [eax + 2]
mov dword [ebp - 0x16c], eax
mov byte [ebp - 0x168], 0
lea edx, [ebp - 0x174]
mov ecx, 1
mov eax, 0x4587ec
call fcn.00409534
test ebx, ebx
je 0x458524
lea eax, [ebp - 0x24]
mov ecx, ebx
mov edx, dword [ebp - 0x20]
call fcn.004047d8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x130]
mov edx, dword [ebp - 0x24]
call fcn.00408e58
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x45850e
mov edx, esi
mov eax, dword [ebp - 0x14]
call fcn.00408fb8
call fcn.00403fa0
jmp 0x45878c
mov eax, esi
call fcn.004044d4
mov edx, 0x86
mov eax, dword [0x457da4]
call fcn.00457f40
mov dword [ebp - 0x1c], 0x34
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
call fcn.00402f38
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x458808
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x45856a
mov edx, 0x65
mov eax, dword [0x457da4]
call fcn.00457f40
lea edx, [ebp - 0x164]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
call fcn.004028d0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x15c]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x158]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x154]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x150]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x144]
mov dword [eax + 0x10], edx
lea eax, [ebp - 0x24]
mov ecx, 0x458814
mov edx, dword [ebp - 0x20]
call fcn.004047d8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x130]
mov edx, dword [ebp - 0x24]
call fcn.00408e58
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x458676
cmp dword [ebp - 0x1c], 0
je 0x458676
lea edx, [ebp - 0x178]
mov eax, dword [ebp - 0x14]
call fcn.00408fb8
mov edx, dword [ebp - 0x178]
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.00404528
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.0040317c
mov eax, dword [ebp - 4]
fstp qword [eax + 0x18]
wait
cmp dword [ebp - 0x18], 0
je 0x45868c
xor eax, eax
push ebp
push 0x45865f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.0045826c
mov eax, dword [ebp - 4]
fstp qword [eax + 0x18]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45868c
mov eax, dword [ebp - 4]
add eax, 0x14
call fcn.004044d4
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
lea eax, [ebp - 0x24]
mov ecx, 0x458828
mov edx, dword [ebp - 0x20]
call fcn.004047d8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x130]
mov edx, dword [ebp - 0x24]
call fcn.00408e58
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x45874b
cmp dword [ebp - 0x1c], 0
je 0x45874b
lea edx, [ebp - 0x17c]
mov eax, dword [ebp - 0x14]
call fcn.00408fb8
mov edx, dword [ebp - 0x17c]
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.00404528
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.0040317c
mov eax, dword [ebp - 4]
fstp qword [eax + 0x30]
wait
cmp dword [ebp - 0x18], 0
je 0x458761
xor eax, eax
push ebp
push 0x458734
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
call fcn.0045826c
mov eax, dword [ebp - 4]
fstp qword [eax + 0x30]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x458761
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.004044d4
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45878c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00402738
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.00402738
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4587be
lea eax, [ebp - 0x17c]
mov edx, 2
call fcn.004044f8
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004044f8
ret