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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100470c3
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x1005d85c]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x20], 0
push 0x40
mov eax, dword [ebp + 0xc]
push eax
call fcn.10004dc0
add esp, 8
test eax, eax
jne 0x10004822
xor eax, eax
jmp 0x10004d7f
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x3c]
add eax, 0xf8
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10004dc0
add esp, 8
test eax, eax
jne 0x1000484b
xor eax, eax
jmp 0x10004d7f
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
cmp dword [ecx], 0x4550
je 0x10004869
xor eax, eax
jmp 0x10004d7f
mov edx, dword [ebp - 0x80]
movzx eax, word [edx + 4]
cmp eax, 0x14c
je 0x1000487e
xor eax, eax
jmp 0x10004d7f
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x38]
and edx, 1
je 0x10004890
xor eax, eax
jmp 0x10004d7f
mov eax, dword [ebp - 0x80]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 0x80]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x18], 0
jmp 0x100048ce
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xa0]
add ecx, 0x28
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0x80]
movzx eax, word [edx + 6]
cmp dword [ebp - 0x18], eax
jae 0x10004928
mov ecx, dword [ebp - 0xa0]
cmp dword [ecx + 0x10], 0
jne 0x100048fa
mov edx, dword [ebp - 0xa0]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0xa4], eax
jmp 0x10004912
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0xa0]
add edx, dword [eax + 0x10]
mov dword [ebp - 0xa4], edx
mov ecx, dword [ebp - 0xa4]
cmp ecx, dword [ebp - 0x20]
jbe 0x10004926
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x20], edx
jmp 0x100048b6
lea eax, [ebp - 0x48]
push eax
call fcn.10002030
add esp, 4
mov dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0x10
jb 0x1000494c
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x198], ecx
jmp 0x10004955
lea edx, [ebp - 0x44]
mov dword [ebp - 0x198], edx
mov eax, dword [ebp - 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.10004000
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x84], 0x10
jb 0x1000498f
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x19c], edx
jmp 0x1000499b
lea eax, [ebp - 0x98]
mov dword [ebp - 0x19c], eax
mov ecx, dword [ebp - 0x19c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x50]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc8]
push ecx
mov edx, dword [ebp - 0xc4]
push edx
call fcn.10004da0
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.10004da0
add esp, 8
cmp dword [ebp - 0x28], eax
je 0x10004a43
mov dword [ebp - 0xb0], 0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x9c]
call fcn.1000cb10
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.1000cb10
mov eax, dword [ebp - 0xb0]
jmp 0x10004d7f
mov eax, dword [ebp + 0x24]
push eax
push 4
push 0x3000
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x34]
push eax
call dword [ebp + 0x10]
add esp, 0x14
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10004ac3
mov ecx, dword [ebp + 0x24]
push ecx
push 4
push 0x3000
mov edx, dword [ebp - 0x28]
push edx
push 0
call dword [ebp + 0x10]
add esp, 0x14
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x10004ac3
mov dword [ebp - 0xb4], 0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x9c]
call fcn.1000cb10
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.1000cb10
mov eax, dword [ebp - 0xb4]
jmp 0x10004d7f
push 0x40
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x10004b2d
mov eax, dword [ebp + 0x24]
push eax
push 0x8000
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [ebp + 0x14]
add esp, 0x10
mov dword [ebp - 0xb8], 0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x9c]
call fcn.1000cb10
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.1000cb10
mov eax, dword [ebp - 0xb8]
jmp 0x10004d7f
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x24]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x80]
movzx edx, word [ecx + 0x16]
and edx, 0x2000
neg edx
sbb edx, edx
neg edx
mov eax, dword [ebp - 0x78]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x24], eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp + 0x1c]
mov dword [ecx + 0x28], edx
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x20]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp + 0x24]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
mov dword [ecx + 0x3c], edx
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.10004dc0
add esp, 8
test eax, eax
jne 0x10004baa
jmp 0x10004d3d
mov eax, dword [ebp + 0x24]
push eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [ebp + 0x10]
add esp, 0x14
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x80]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1002c630
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 0x78]
mov dword [ecx], eax
mov edx, dword [ebp - 0x78]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x34], ecx
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10004de0
add esp, 0x10
test eax, eax
jne 0x10004c1a
jmp 0x10004d3d
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x80]
mov eax, dword [ecx + 0x34]
sub eax, dword [edx + 0x34]
mov dword [ebp - 0x7c], eax
je 0x10004c45
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x78]
push edx
call fcn.10005400
add esp, 8
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x18], eax
jmp 0x10004c4f
mov edx, dword [ebp - 0x78]
mov dword [edx + 0x18], 1
mov eax, dword [ebp - 0x78]
push eax
call fcn.10005510
add esp, 4
test eax, eax
jne 0x10004c64
jmp 0x10004d3d
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.10004f50
add esp, 4
test eax, eax
jne 0x10004c79
jmp 0x10004d3d
mov edx, dword [ebp - 0x78]
push edx
call fcn.10005390
add esp, 4
test eax, eax
jne 0x10004c8e
jmp 0x10004d3d
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
cmp dword [ecx + 0x28], 0
je 0x10004cfc
mov edx, dword [ebp - 0x78]
cmp dword [edx + 0x14], 0
je 0x10004ce9
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x24]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0xac], edx
push 0
push 1
mov eax, dword [ebp - 0x24]
push eax
call dword [ebp - 0xac]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
jne 0x10004cdd
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10004d3d
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x10], 1
jmp 0x10004cfa
mov edx, dword [ebp - 0x78]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0x78]
mov dword [edx + 0x38], ecx
jmp 0x10004d06
mov eax, dword [ebp - 0x78]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0xbc], ecx
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x9c]
call fcn.1000cb10
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.1000cb10
mov eax, dword [ebp - 0xbc]
jmp 0x10004d7f
mov edx, dword [ebp - 0x78]
push edx
call fcn.100066a0
add esp, 4
mov dword [ebp - 0xc0], 0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x9c]
call fcn.1000cb10
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.1000cb10
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.1002c435
mov esp, ebp
pop ebp
ret