Function at 0x4146d0
Capabilities:
Get system information on windows
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x629a40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x1c]
push str.1898fab324d0ec9cbf65d84762043320
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call fcn.004075c0
cmp dword [ebp - 0xc], 0x100
mov eax, dword [ebp - 8]
jbe 0x414745
add bh, al
inc ebp
hlt
cmp eax, 0x10
jb 0x41472f
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00407ab0
jae 0x414700
or esp, esi
xchg esi, edx
xchg edx, eax
sub edi, eax
or al, byte [ebp - 0x3e68077c]
and al, 0xb0
cmp bl, byte [ebx - 0x7ced1441]
clc
adc byte [edx + 0xd], dh
cmp eax, 0x10
jb 0x414757
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00407ab0
push 0x20
push str.fa903dd0413b0d698a127ac1dd4a3e15
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call fcn.004075c0
cmp dword [ebp - 0xc], 0x100
mov eax, dword [ebp - 8]
jbe 0x4147ac
cmp eax, 0x10
jb 0x414796
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00407ab0
hlt
cmp eax, 0x10
jb 0x4147be
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00407ab0
push 0x20
push str.e8dd2f8e97d295ef09e1499a357d54bf
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
call fcn.004075c0
cmp dword [ebp - 0xc], 0x100
mov eax, dword [ebp - 8]
jbe 0x414813
cmp eax, 0x10
jb 0x4147fd
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00407ab0
wait
pop dword [ecx + 0x58]
in eax, 0xa0
cmc
mov esi, 0x92046fd0
call 0x48dc1dc6
dec ebx
mov bh, 0xeb
adc al, byte [ebx + 0xd7210f8]
cmp eax, 0x10
jb 0x414825
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00407ab0
mov ebx, dword [ebp - 0x24]
cmp ebx, 0x40
jae 0x414848
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00572ac9
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x20]
mov eax, 0x5a4d
cmp word [edx], ax
je 0x414873
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00572ac9
mov esp, ebp
pop ebp
ret
mov ecx, dword [edx + 0x3c]
mov dword [ebp - 0x30], ecx
lea eax, [ecx + 0xf8]
cmp ebx, eax
jb 0x41482d
cmp dword [edx + ecx], 0x4550
lea esi, [edx + ecx]
mov dword [ebp - 0x2c], esi
jne 0x414855
mov eax, 0x14c
cmp word [esi + 4], ax
jne 0x414855
mov ebx, dword [esi + 0x38]
test bl, 1
jne 0x414855
movzx eax, word [esi + 0x14]
lea ecx, [esi + 0x24]
movzx edi, word [esi + 6]
add ecx, eax
test edi, edi
je 0x4148da
xor edx, edx
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
test esi, esi
jne 0x4148c5
add eax, ebx
jmp 0x4148c7
add eax, esi
cmp eax, edx
cmova edx, eax
add ecx, 0x28
sub edi, 1
jne 0x4148b8
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x28]
dec eax
add eax, ecx
lea edx, [ecx - 1]
lea edi, [ecx - 1]
not edx
add edi, dword [esi + 0x50]
and eax, edx
and edi, edx
cmp edi, eax
jne 0x414855
push 0
push 4
push 0x3000
push edi
push dword [esi + 0x34]
call fcn.004142d0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x414937
push eax
push 4
push 0x3000
push edi
push eax
call fcn.004142d0
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x41495e
push 0x3c
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x414979
push eax
push 0x8000
push eax
push ebx
call fcn.00414400
add esp, 0x10
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00572ac9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x24]
mov dword [edi + 4], ebx
movzx eax, word [esi + 0x16]
shr eax, 0xd
and eax, 1
mov dword [edi + 0x1c], fcn.004142d0
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], fcn.00414400
mov dword [edi + 0x24], 0x414510
mov dword [edi + 0x28], 0x414520
mov dword [edi + 0x2c], 0x414540
mov dword [edi + 0x30], 0
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x38], eax
mov edx, dword [esi + 0x54]
call fcn.004139c0
test eax, eax
je 0x414a7d
push 0
push 4
push 0x1000
push dword [esi + 0x54]
push ebx
call fcn.004142d0
mov ecx, dword [ebp - 0x20]
mov esi, eax
mov eax, dword [ebp - 0x30]
add esp, 0x14
push dword [ecx + eax + 0x54]
push ecx
push esi
call fcn.005785d0
mov ecx, dword [ebp - 0x20]
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x3c]
add eax, esi
mov esi, dword [ebp - 0x2c]
push edi
mov dword [edi], eax
push esi
mov dword [eax + 0x34], ebx
call fcn.004139e0
add esp, 8
test eax, eax
je 0x414a7d
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
sub edx, dword [esi + 0x34]
je 0x414a2e
mov ecx, edi
call fcn.00414070
mov dword [edi + 0x18], eax
jmp 0x414a35
mov dword [edi + 0x18], 1
mov ecx, edi
call fcn.00414120
test eax, eax
je 0x414a7d
mov ecx, edi
call fcn.00413df0
test eax, eax
je 0x414a7d
mov ecx, edi
call fcn.00413f30
test eax, eax
je 0x414a7d
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x414ac7
add eax, ebx
cmp dword [edi + 0x14], 0
je 0x414ab1
push 0
push 1
push ebx
call eax
test eax, eax
jne 0x414a97
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
call fcn.00414c00
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00572ac9
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x10], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00572ac9
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x34], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00572ac9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
mov dword [edi + 0x34], 0
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00572ac9
mov esp, ebp
pop ebp
ret