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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, 0x5a4d
push ebx
push esi
xor esi, esi
push edi
cmp word [0x1023ddd0], ax
jne 0x1010c2dc
mov ecx, dword [0x1023de0c]
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 0xf8]
cmp eax, 0x1b49c
jbe 0x1010bf56
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp dword [ecx + 0x1023ddd0], 0x4550
lea edi, [ecx + 0x1023ddd0]
mov dword [ebp - 0x14], edi
jne 0x1010c2dc
mov eax, 0x14c
cmp word [edi + 4], ax
jne 0x1010c2dc
mov ecx, dword [edi + 0x38]
test cl, 1
jne 0x1010c2dc
movzx edx, word [edi + 0x14]
movzx ebx, word [edi + 6]
add edx, 0x24
test ebx, ebx
je 0x1010bfbd
add edx, edi
nop dword [eax + eax]
mov eax, dword [edx + 4]
lea edx, [edx + 0x28]
test eax, eax
cmovne ecx, eax
add ecx, dword [edx - 0x28]
cmp ecx, esi
cmovbe ecx, esi
mov esi, ecx
mov ecx, dword [edi + 0x38]
sub ebx, 1
jne 0x1010bfa0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [ebp - 0x38]
lea edx, [ecx - 1]
lea ebx, [ecx - 1]
not edx
add ebx, dword [edi + 0x50]
lea eax, [ecx - 1]
add eax, esi
and ebx, edx
and eax, edx
cmp ebx, eax
jne 0x1010c2dc
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push ebx
push dword [edi + 0x34]
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x1010c012
push 4
push 0x3000
push ebx
push eax
call esi
mov dword [ebp - 4], eax
test eax, eax
je 0x1010c03c
push 0x34
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x1010c04f
push 0x8000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [ebx + 4], ecx
movzx eax, word [edi + 0x16]
shr eax, 0xd
and eax, 1
mov dword [ebx + 0x1c], 0x1010bed0
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x20], 0x1010bee0
mov dword [ebx + 0x24], 0x1010bf00
mov dword [ebx + 0x28], 0
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x30], eax
mov eax, dword [edi + 0x54]
cmp eax, 0x1b49c
jbe 0x1010c0a4
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call fcn.1010c3e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 4
push 0x1000
push eax
push ecx
call esi
push dword [edi + 0x54]
mov esi, eax
push 0x1023ddd0
push esi
call fcn.101e3770
mov eax, dword [0x1023de0c]
add esp, 0xc
mov ecx, dword [ebp - 4]
add eax, esi
mov dword [ebx], eax
xor esi, esi
mov dword [ebp - 0xc], 0
mov dword [eax + 0x34], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [ebp - 8], edx
movzx eax, word [ecx + 0x14]
add eax, 0x24
cmp si, word [ecx + 6]
jae 0x1010c19e
lea edi, [eax + ecx]
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x1010c138
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 0x1023de08]
test esi, esi
jle 0x1010c183
mov eax, dword [edi]
push 4
push 0x1000
push esi
add eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1010c093
mov eax, dword [edi]
add eax, dword [ebp - 8]
push esi
push 0
push eax
mov dword [edi - 4], eax
call fcn.101e3600
jmp 0x1010c17d
mov eax, dword [edi + 8]
add eax, ecx
cmp eax, 0x1b49c
ja 0x1010c08b
mov eax, dword [edi]
push 4
push 0x1000
push ecx
add eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1010c093
push dword [edi + 4]
mov eax, dword [edi + 8]
mov esi, dword [edi]
add eax, 0x1023ddd0
add esi, dword [ebp - 8]
push eax
push esi
call fcn.101e3770
mov dword [edi - 4], esi
mov edx, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebx]
add edi, 0x28
mov esi, dword [ebp - 0xc]
inc esi
mov dword [ebp - 0xc], esi
movzx eax, word [ecx + 6]
cmp esi, eax
jl 0x1010c0f6
mov edi, dword [ebp - 0x14]
mov eax, dword [ecx + 0x34]
sub eax, dword [edi + 0x34]
mov dword [ebp - 0x10], eax
je 0x1010c22d
cmp dword [ecx + 0xa4], 0
jne 0x1010c1ba
xor eax, eax
jmp 0x1010c232
mov edx, dword [ebx + 4]
mov edi, dword [ecx + 0xa0]
add edi, edx
mov dword [ebp - 0xc], edx
mov eax, dword [edi]
test eax, eax
je 0x1010c22d
nop
mov ecx, dword [edi + 4]
add eax, edx
mov dword [ebp - 0x14], eax
lea edx, [edi + 8]
xor esi, esi
lea eax, [ecx - 8]
test eax, 0xfffffffe
jbe 0x1010c21e
mov ebx, dword [ebp - 0x14]
nop word [eax + eax]
movzx eax, word [edx]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x1010c20e
mov ecx, dword [ebp - 0x10]
and eax, 0xfff
add dword [eax + ebx], ecx
mov ecx, dword [edi + 4]
inc esi
add edx, 2
lea eax, [ecx - 8]
shr eax, 1
cmp esi, eax
jb 0x1010c1f0
mov eax, dword [edi + ecx]
add edi, ecx
mov edx, dword [ebp - 0xc]
test eax, eax
jne 0x1010c1d0
mov ebx, dword [ebp - 0x18]
mov eax, 1
push ebx
mov dword [ebx + 0x18], eax
call fcn.1010bd60
test eax, eax
je 0x1010c093
push ebx
call fcn.1010bc10
test eax, eax
je 0x1010c093
mov edx, dword [ebx]
mov ecx, edx
mov esi, dword [edx + 0xc0]
test esi, esi
je 0x1010c283
mov edi, dword [ebx + 4]
mov esi, dword [esi + edi + 0xc]
test esi, esi
je 0x1010c283
mov eax, dword [esi]
test eax, eax
je 0x1010c283
push 0
push 1
push edi
call eax
mov eax, dword [esi + 4]
lea esi, [esi + 4]
test eax, eax
jne 0x1010c270
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x1010c2ca
mov ecx, dword [ebp - 4]
add eax, ecx
cmp dword [ebx + 0x14], 0
je 0x1010c2bc
push 0
push 1
push ecx
call eax
test eax, eax
jne 0x1010c2aa
push 0x45a
jmp 0x1010c08d
pop edi
pop esi
mov dword [ebx + 0x10], 1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
mov dword [ebx + 0x2c], eax
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
pop esi
mov dword [ebx + 0x2c], 0
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18