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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006892c
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.10004fc0
add esp, 8
test eax, eax
jne 0x10004ac5
xor eax, eax
jmp 0x10004f99
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.10004fc0
add esp, 8
test eax, eax
jne 0x10004aee
xor eax, eax
jmp 0x10004f99
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 0x10004b0c
xor eax, eax
jmp 0x10004f99
mov edx, dword [ebp - 0x4c]
xor eax, eax
mov ax, word [edx + 4]
cmp eax, 0x14c
je 0x10004b23
xor eax, eax
jmp 0x10004f99
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x38]
and edx, 1
test edx, edx
je 0x10004b37
xor eax, eax
jmp 0x10004f99
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 0x10004b6e
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 0x10004bbe
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 0x10], 0
jne 0x10004b96
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0xc]
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x88], eax
jmp 0x10004ba8
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 0x10004bbc
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x18], edx
jmp 0x10004b5c
lea eax, [ebp - 0x5c]
push eax
call fcn.10002afe
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.10017480
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x84]
push ecx
call fcn.10004441
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.10017480
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.10017240
add esp, 8
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.10017240
add esp, 8
cmp dword [ebp - 0x74], eax
je 0x10004c77
mov dword [ebp - 0x94], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.10017350
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.10017350
mov eax, dword [ebp - 0x94]
jmp 0x10004f99
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 0x10004cef
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 0x10004cef
mov dword [ebp - 0x98], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.10017350
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.10017350
mov eax, dword [ebp - 0x98]
jmp 0x10004f99
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 0x10004d51
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.10017350
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.10017350
mov eax, dword [ebp - 0x9c]
jmp 0x10004f99
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.10004fc0
add esp, 8
test eax, eax
jne 0x10004dd0
jmp 0x10004f5f
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.100279a0
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.10004fd6
add esp, 0x10
test eax, eax
jne 0x10004e40
jmp 0x10004f5f
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 0x10004e6f
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.10005579
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x18], eax
jmp 0x10004e79
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x18], 1
mov eax, dword [ebp - 0x14]
push eax
call fcn.1000567d
add esp, 4
test eax, eax
jne 0x10004e8e
jmp 0x10004f5f
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000513a
add esp, 4
test eax, eax
jne 0x10004ea3
jmp 0x10004f5f
mov edx, dword [ebp - 0x14]
push edx
call fcn.1000550b
add esp, 4
test eax, eax
jne 0x10004eb8
jmp 0x10004f5f
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
cmp dword [ecx + 0x28], 0
je 0x10004f26
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x14], 0
je 0x10004f13
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 0x10004f07
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10004f5f
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], 1
jmp 0x10004f24
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 0x10004f30
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.10017350
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.10017350
mov eax, dword [ebp - 0xa0]
jmp 0x10004f99
mov edx, dword [ebp - 0x14]
push edx
call fcn.1000657c
add esp, 4
mov dword [ebp - 0xa4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call fcn.10017350
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.10017350
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret