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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100ce350]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x34], edx
push 9
xor eax, eax
mov dword [ebp - 0x30], ebx
pop ecx
lea edi, [ebp - 0x28]
xor esi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x3c]
mov ecx, 0x5a4d
lea edi, [eax + ebx]
cmp word [ebx], cx
jne 0x10014cac
cmp dword [edi], 0x4550
jne 0x10014cac
cmp edx, 0x40
jb 0x10014ca8
cmp edx, dword [edi + 0x54]
jb 0x10014ca8
add eax, 0xf8
cmp edx, eax
jb 0x10014ca8
mov eax, 0x14c
cmp word [edi + 4], ax
jne 0x10014cac
movzx eax, word [edi + 0x14]
movzx edx, word [edi + 6]
add eax, 0x24
test edx, edx
je 0x10014b18
lea ecx, [eax + edi]
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
test eax, eax
jne 0x10014b07
mov eax, dword [edi + 0x38]
add eax, ebx
cmp eax, esi
cmovbe eax, esi
add ecx, 0x28
mov esi, eax
sub edx, 1
jne 0x10014afb
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [ebp - 0x24]
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
mov dword [ebp - 0x2c], ebx
cmp ebx, eax
jne 0x10014cac
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push ebx
push dword [edi + 0x34]
call esi
mov ebx, eax
test ebx, ebx
jne 0x10014b77
push 4
push 0x3000
push dword [ebp - 0x2c]
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x10014b77
push 0xe
jmp 0x10014cb1
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x1c
push 8
mov dword [ebp - 0x38], eax
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x10014bc6
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x10014bac
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test esi, esi
je 0x10014cb7
push esi
push 0
call dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10014cb7
push 4
mov dword [esi + 4], ebx
mov eax, dword [ebp - 0x24]
push 0x1000
mov dword [esi + 0x18], eax
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10014b92
push dword [edi + 0x54]
push dword [ebp - 0x30]
push eax
call fcn.1007e3f0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
push esi
push edi
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 0x2c]
mov dword [esi], eax
mov dword [eax + 0x34], ebx
call fcn.100144b9
add esp, 0x14
test eax, eax
je 0x10014b9a
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
sub edx, dword [edi + 0x34]
je 0x10014c25
mov ecx, esi
call fcn.10014587
jmp 0x10014c28
xor eax, eax
inc eax
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.10014616
test eax, eax
je 0x10014b9a
mov ecx, esi
call fcn.10014845
test eax, eax
je 0x10014b9a
mov ecx, dword [esi]
mov eax, ecx
mov edi, dword [ecx + 0xc0]
test edi, edi
je 0x10014c7e
mov eax, dword [esi + 4]
mov edi, dword [edi + eax + 0xc]
mov eax, ecx
test edi, edi
je 0x10014c7e
mov edx, dword [edi]
test edx, edx
je 0x10014c7e
push 0
push 1
push dword [esi + 4]
call edx
lea edi, [edi + 4]
mov edx, dword [edi]
test edx, edx
jne 0x10014c6a
mov eax, dword [esi]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x10014ca4
mov eax, dword [esi + 4]
xor edi, edi
push 0
inc edi
push edi
push eax
add eax, ecx
call eax
test eax, eax
jne 0x10014ca1
push 0x45a
jmp 0x10014b94
mov dword [esi + 0x10], edi
mov eax, esi
jmp 0x10014cb9
push 0xd
jmp 0x10014cb1
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007c2ab
leave
ret