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

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edx
pop ebx
push ecx
pop ebp
push 0x40
pop edx
push ebx
pop ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebp
xor esi, esi
call fcn.0041179c
test eax, eax
jne 0x411d27
xor eax, eax
jmp 0x411f3a
mov eax, 0x5a4d
cmp word [ebp], ax
je 0x411d3f
push 0xc1
call dword [sym.imp.KERNEL32.DLL_SetLastError]
jmp 0x411d20
mov edx, dword [ebp + 0x3c]
push ebx
pop ecx
add edx, 0xf8
call fcn.0041179c
test eax, eax
je 0x411d20
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp dword [ebx], 0x4550
jne 0x411d32
mov eax, 0x14c
cmp word [ebx + 4], ax
jne 0x411d32
test byte [ebx + 0x38], 1
jne 0x411d32
movzx edx, word [ebx + 6]
movzx eax, word [ebx + 0x14]
test edx, edx
je 0x411d9f
lea ecx, [ebx + 0x24]
add ecx, eax
cmp dword [ecx + 4], 0
mov eax, dword [ecx]
jne 0x411d8f
add eax, dword [ebx + 0x38]
jmp 0x411d92
add eax, dword [ecx + 4]
cmp eax, esi
cmova esi, eax
add ecx, 0x28
sub edx, 1
jne 0x411d82
push edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetNativeSystemInfo]
mov ecx, dword [ebx + 0x50]
mov edx, dword [esp + 0x1c]
call fcn.0041178b
push esi
pop ecx
push eax
pop edi
call fcn.0041178b
cmp edi, eax
je 0x411dd4
push 0xc1
call dword [sym.imp.KERNEL32.DLL_SetLastError]
jmp 0x411f37
xor esi, esi
push esi
push 0x40
push 0x3000
push edi
push dword [ebx + 0x34]
call fcn.00411ca3
push eax
pop ebp
add esp, 0x14
test ebp, ebp
jne 0x411e0c
push esi
push 0x40
push 0x3000
push edi
push esi
call fcn.00411ca3
push eax
pop ebp
add esp, 0x14
test ebp, ebp
jne 0x411e0c
push 0xe
jmp 0x411dc9
push 0x40
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
push eax
pop edi
test edi, edi
jne 0x411e35
push esi
push 0x8000
push esi
push ebp
call fcn.00411cba
add esp, 0x10
jmp 0x411e08
mov ecx, dword [esp + 0x14]
mov dword [edi + 4], ebp
movzx eax, word [ebx + 0x16]
shr eax, 0xd
and eax, 1
mov dword [edi + 0x1c], fcn.00411ca3
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], fcn.00411cba
mov dword [edi + 0x24], 0x411ccd
mov dword [edi + 0x28], 0x411cd8
mov dword [edi + 0x2c], 0x411ce7
mov dword [edi + 0x34], esi
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x3c], eax
mov edx, dword [ebx + 0x54]
call fcn.0041179c
test eax, eax
je 0x411f30
push esi
push 4
push 0x1000
push dword [ebx + 0x54]
push ebp
call fcn.00411ca3
push dword [ebx + 0x54]
push eax
pop esi
push dword [esp + 0x28]
push esi
call fcn.00436910
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push edi
mov eax, dword [eax + 0x3c]
add eax, esi
mov dword [edi], eax
push ebx
mov dword [eax + 0x34], ebp
call fcn.004117af
add esp, 0x28
test eax, eax
je 0x411f30
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
sub edx, dword [ebx + 0x34]
je 0x411ee3
push edi
pop ecx
call fcn.00411ab3
xor esi, esi
mov dword [edi + 0x18], eax
inc esi
jmp 0x411ee9
xor esi, esi
inc esi
mov dword [edi + 0x18], esi
push edi
pop ecx
call fcn.00411b5f
test eax, eax
je 0x411f30
push edi
pop ecx
call fcn.0041194f
test eax, eax
je 0x411f30
push edi
pop ecx
call fcn.00411a82
test eax, eax
je 0x411f30
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x411f4b
add eax, ebp
cmp dword [edi + 0x14], 0
je 0x411f46
push 0
push esi
push ebp
call eax
test eax, eax
jne 0x411f41
push 0x45a
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push edi
pop ecx
call fcn.00412077
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov dword [edi + 0x10], esi
jmp 0x411f4f
mov dword [edi + 0x38], eax
jmp 0x411f4f
and dword [edi + 0x38], 0
push edi
pop eax
jmp 0x411f39