Function at 0x10004a30
Capabilities:
Enumerate pe sections
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100441ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0x40
mov eax, dword [ebp + 0xc]
push eax
call fcn.10004f70
add esp, 8
test eax, eax
jne 0x10004a75
xor eax, eax
jmp 0x10004f49
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x3c]
add eax, 0xf8
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10004f70
add esp, 8
test eax, eax
jne 0x10004a9e
xor eax, eax
jmp 0x10004f49
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx], 0x4550
je 0x10004abc
xor eax, eax
jmp 0x10004f49
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov ax, word [edx + 4]
cmp eax, 0x14c
je 0x10004ad3
xor eax, eax
jmp 0x10004f49
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x38]
and edx, 1
test edx, edx
je 0x10004ae7
xor eax, eax
jmp 0x10004f49
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp - 0x4c]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x68], 0
jmp 0x10004b1e
mov eax, dword [ebp - 0x68]
add eax, 1
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x28
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov ax, word [edx + 6]
cmp dword [ebp - 0x68], eax
jae 0x10004b6e
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 0x10], 0
jne 0x10004b46
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x88], eax
jmp 0x10004b58
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x48]
add edx, dword [eax + 0x10]
mov dword [ebp - 0x88], edx
mov ecx, dword [ebp - 0x88]
cmp ecx, dword [ebp - 0x18]
jbe 0x10004b6c
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x18], edx
jmp 0x10004b0c
lea eax, [ebp - 0x5c]
push eax
call fcn.10002aae
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.1000c220
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x84]
push ecx
call fcn.100043f1
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.1000c220
push eax
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x50]
push eax
call fcn.1000bfe0
add esp, 8
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.1000bfe0
add esp, 8
cmp dword [ebp - 0x74], eax
je 0x10004c27
mov dword [ebp - 0x94], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.1000c0f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.1000c0f0
mov eax, dword [ebp - 0x94]
jmp 0x10004f49
mov eax, dword [ebp + 0x24]
push eax
push 4
push 0x3000
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x34]
push eax
call dword [ebp + 0x10]
add esp, 0x14
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x10004c9f
mov ecx, dword [ebp + 0x24]
push ecx
push 4
push 0x3000
mov edx, dword [ebp - 0x74]
push edx
push 0
call dword [ebp + 0x10]
add esp, 0x14
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x10004c9f
mov dword [ebp - 0x98], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.1000c0f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.1000c0f0
mov eax, dword [ebp - 0x98]
jmp 0x10004f49
push 0x40
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10004d01
mov eax, dword [ebp + 0x24]
push eax
push 0x8000
push 0
mov ecx, dword [ebp - 0x70]
push ecx
call dword [ebp + 0x14]
add esp, 0x10
mov dword [ebp - 0x9c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.1000c0f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.1000c0f0
mov eax, dword [ebp - 0x9c]
jmp 0x10004f49
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x70]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x4c]
xor edx, edx
mov dx, word [ecx + 0x16]
and edx, 0x2000
neg edx
sbb edx, edx
neg edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x24], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x1c]
mov dword [ecx + 0x28], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x20]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x24]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x38]
mov dword [ecx + 0x3c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10004f70
add esp, 8
test eax, eax
jne 0x10004d80
jmp 0x10004f0f
mov eax, dword [ebp + 0x24]
push eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp - 0x70]
push eax
call dword [ebp + 0x10]
add esp, 0x14
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.10018a10
add esp, 0xc
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x6c]
add eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x70]
mov dword [eax + 0x34], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10004f86
add esp, 0x10
test eax, eax
jne 0x10004df0
jmp 0x10004f0f
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ecx + 0x34]
sub eax, dword [edx + 0x34]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x10004e1f
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.10005529
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x18], eax
jmp 0x10004e29
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x18], 1
mov eax, dword [ebp - 0x14]
push eax
call fcn.1000562d
add esp, 4
test eax, eax
jne 0x10004e3e
jmp 0x10004f0f
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100050ea
add esp, 4
test eax, eax
jne 0x10004e53
jmp 0x10004f0f
mov edx, dword [ebp - 0x14]
push edx
call fcn.100054bb
add esp, 4
test eax, eax
jne 0x10004e68
jmp 0x10004f0f
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
cmp dword [ecx + 0x28], 0
je 0x10004ed6
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x14], 0
je 0x10004ec3
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x70]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0x8c], edx
push 0
push 1
mov eax, dword [ebp - 0x70]
push eax
call dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x10004eb7
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10004f0f
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], 1
jmp 0x10004ed4
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x70]
add ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x38], ecx
jmp 0x10004ee0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xa0], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.1000c0f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.1000c0f0
mov eax, dword [ebp - 0xa0]
jmp 0x10004f49
mov edx, dword [ebp - 0x14]
push edx
call fcn.1000652c
add esp, 4
mov dword [ebp - 0xa4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.1000c0f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.1000c0f0
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret