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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x517748]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, 0x5a4d
xor esi, esi
cmp word [0x518b90], ax
je 0x43e02d
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c0564
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x518bcc]
mov dword [ebp - 0x30], ecx
lea eax, [ecx + 0xf8]
cmp eax, 0x3dc00
jbe 0x43e05c
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c0564
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x518b90], 0x4550
push edi
lea edi, [ecx + 0x518b90]
je 0x43e08c
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c0564
mov esp, ebp
pop ebp
ret
mov eax, 0x14c
cmp word [edi + 4], ax
jne 0x43e06f
test byte [edi + 0x38], 1
jne 0x43e06f
movzx eax, word [edi + 0x14]
lea ecx, [edi + 0x24]
add ecx, eax
movzx eax, word [edi + 6]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x43e0ce
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
jne 0x43e0bf
add eax, dword [edi + 0x38]
jmp 0x43e0c1
add eax, edx
cmp eax, esi
cmova esi, eax
add ecx, 0x28
dec dword [ebp - 0x2c]
jne 0x43e0b1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [ebp - 0x24]
mov eax, dword [edi + 0x50]
dec eax
add eax, ecx
lea edx, [ecx - 1]
not edx
and eax, edx
mov dword [ebp - 0x34], eax
lea eax, [ecx - 1]
mov ecx, dword [ebp - 0x34]
add eax, esi
and eax, edx
cmp ecx, eax
jne 0x43e06f
push 4
push 0x3000
push ecx
push dword [edi + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call edi
mov esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
jne 0x43e12f
push 4
push 0x3000
push dword [ebp - 0x34]
push eax
call edi
mov esi, eax
mov dword [ebp - 0x2c], eax
test esi, esi
je 0x43e153
push 0x34
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 0x43e16d
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c0564
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov dword [edi + 4], esi
lea esi, [eax + 0x518b90]
movzx eax, word [esi + 0x16]
shr eax, 0xd
and eax, 1
mov dword [edi + 0x1c], 0x43dfb0
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], 0x43dfc0
mov dword [edi + 0x24], 0x43dfe0
mov dword [edi + 0x28], 0
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x30], eax
mov edx, dword [esi + 0x54]
call fcn.0043da20
test eax, eax
je 0x43e270
push 4
push 0x1000
push dword [esi + 0x54]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov eax, dword [ebp - 0x30]
push dword [eax + 0x518be4]
push 0x518b90
push esi
call fcn.004c54b0
mov eax, dword [0x518bcc]
mov ecx, dword [ebp - 0x2c]
add eax, esi
mov dword [edi], eax
push edi
mov dword [eax + 0x34], ecx
mov eax, dword [ebp - 0x30]
lea esi, [eax + 0x518b90]
push esi
call fcn.0043da40
add esp, 0x14
test eax, eax
je 0x43e270
mov eax, dword [edi]
mov edx, dword [eax + 0x34]
sub edx, dword [esi + 0x34]
je 0x43e21d
mov ecx, edi
call fcn.0043dd80
mov dword [edi + 0x18], eax
jmp 0x43e224
mov dword [edi + 0x18], 1
mov ecx, edi
call fcn.0043de30
test eax, eax
je 0x43e270
mov ecx, edi
call fcn.0043dc00
test eax, eax
je 0x43e270
mov ecx, edi
call fcn.0043dd40
test eax, eax
je 0x43e270
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
test edx, edx
je 0x43e2bc
cmp dword [edi + 0x14], 0
je 0x43e2a2
mov ecx, dword [ebp - 0x2c]
push 0
push 1
push ecx
lea eax, [edx + ecx]
call eax
test eax, eax
jne 0x43e289
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
call fcn.0043e3b0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c0564
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x10], 1
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c0564
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
add eax, edx
mov dword [edi + 0x2c], eax
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c0564
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
mov dword [edi + 0x2c], 0
xor ecx, ebp
pop edi
pop esi
call fcn.004c0564
mov esp, ebp
pop ebp
ret