Function at 0x403c44
Capabilities:
Enumerate pe sections
Get system information on windows
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xac
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x20], eax
mov eax, dword [0x29d1044]
mov dword [esp + 0x9c], eax
xor eax, eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 4], 0x40
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00402b80
test eax, eax
jne 0x403ce2
mov eax, 0
jmp 0x404232
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x403d12
mov dword [esp], 0xc1
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
sub esp, 4
mov eax, 0
jmp 0x404232
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x3c]
add eax, 0xf8
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00402b80
test eax, eax
jne 0x403d3c
mov eax, 0
jmp 0x404232
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [esp + 0x3c]
add eax, edx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x5c]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x403d77
mov dword [esp], 0xc1
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
sub esp, 4
mov eax, 0
jmp 0x404232
mov eax, dword [esp + 0x5c]
movzx eax, word [eax + 4]
cmp ax, 0x14c
je 0x403da0
mov dword [esp], 0xc1
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
sub esp, 4
mov eax, 0
jmp 0x404232
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x38]
and eax, 1
test eax, eax
je 0x403dc9
mov dword [esp], 0xc1
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
sub esp, 4
mov eax, 0
jmp 0x404232
mov eax, dword [esp + 0x5c]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [esp + 0x5c]
add eax, edx
add eax, 0x18
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x60], eax
mov dword [esp + 0x48], 0
jmp 0x403e44
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x403e14
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x60]
add eax, edx
mov dword [esp + 0x50], eax
jmp 0x403e28
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x10]
add eax, edx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x4c]
jbe 0x403e3a
mov eax, dword [esp + 0x50]
mov dword [esp + 0x4c], eax
add dword [esp + 0x48], 1
add dword [esp + 0x44], 0x28
mov eax, dword [esp + 0x5c]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [esp + 0x48], eax
jb 0x403df6
lea eax, [esp + 0x78]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
call eax
sub esp, 4
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x50]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00402858
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.00402858
cmp dword [esp + 0x64], eax
je 0x403eb6
mov dword [esp], 0xc1
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
sub esp, 4
mov eax, 0
jmp 0x404232
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x34]
mov edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [esp + 0x34]
call eax
mov dword [esp + 0x40], eax
cmp dword [esp + 0x40], 0
jne 0x403f46
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [esp + 0x34]
call eax
mov dword [esp + 0x40], eax
cmp dword [esp + 0x40], 0
jne 0x403f46
mov dword [esp], 0xe
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
sub esp, 4
mov eax, 0
jmp 0x404232
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], 8
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_HeapAlloc]
call eax
sub esp, 0xc
mov dword [esp + 0x54], eax
cmp dword [esp + 0x54], 0
jne 0x403fb5
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
call eax
mov dword [esp], 0xe
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
sub esp, 4
mov eax, 0
jmp 0x404232
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x5c]
movzx eax, word [eax + 0x16]
movzx eax, ax
and eax, 0x2000
test eax, eax
setne al
movzx edx, al
mov eax, dword [esp + 0x54]
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x34]
mov dword [eax + 0x1c], edx
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x30]
mov dword [eax + 0x20], edx
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x2c]
mov dword [eax + 0x24], edx
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x28]
mov dword [eax + 0x28], edx
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x24]
mov dword [eax + 0x2c], edx
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x20]
mov dword [eax + 0x34], edx
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x54]
mov dword [eax + 0x3c], edx
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00402b80
test eax, eax
je 0x404214
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x54]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
call eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x54]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [esp + 0x68]
add edx, eax
mov eax, dword [esp + 0x54]
mov dword [eax], edx
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
mov edx, dword [esp + 0x40]
mov dword [eax + 0x34], edx
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.00402bdc
test eax, eax
je 0x404217
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
mov edx, dword [eax + 0x34]
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x34]
mov eax, edx
sub eax, ecx
mov dword [esp + 0x6c], eax
cmp dword [esp + 0x6c], 0
je 0x404128
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.0040456c
mov edx, dword [esp + 0x54]
mov dword [edx + 0x18], eax
jmp 0x404133
mov eax, dword [esp + 0x54]
mov dword [eax + 0x18], 1
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.004028a0
test eax, eax
je 0x40421a
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.00403068
test eax, eax
je 0x40421d
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.00402e10
test eax, eax
je 0x404220
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x404203
mov eax, dword [esp + 0x54]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4041e9
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
mov edx, dword [eax + 0x28]
mov eax, dword [esp + 0x40]
add eax, edx
mov dword [esp + 0x70], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
call eax
sub esp, 0xc
mov dword [esp + 0x74], eax
cmp dword [esp + 0x74], 0
jne 0x4041dc
mov dword [esp], 0x45a
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
sub esp, 4
jmp 0x404221
mov eax, dword [esp + 0x54]
mov dword [eax + 0x10], 1
jmp 0x40420e
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
mov edx, dword [eax + 0x28]
mov eax, dword [esp + 0x40]
add eax, edx
mov edx, eax
mov eax, dword [esp + 0x54]
mov dword [eax + 0x38], edx
jmp 0x40420e
mov eax, dword [esp + 0x54]
mov dword [eax + 0x38], 0
mov eax, dword [esp + 0x54]
jmp 0x404232
nop
jmp 0x404221
nop
jmp 0x404221
nop
jmp 0x404221
nop
jmp 0x404221
nop
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.00403780
mov eax, 0
mov ecx, dword [esp + 0x9c]
sub ecx, dword [0x29d1044]
je 0x404246
call fcn.004016b0
add esp, 0xac
ret