Function at 0x10004660
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x2c
push ebp
push esi
push edi
push str.GetNativeSystemInfo
mov esi, ecx
push str.Kernel32.dll
mov dword [esp + 0x14], esi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [esp + 0x40]
push 0x40
push edi
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.100033d0
test eax, eax
jne 0x100046a4
pop edi
pop esi
pop ebp
add esp, 0x2c
ret 0x18
push ebx
mov ebx, dword [esp + 0x40]
cmp word [ebx], 0x5a4d
jne 0x10004742
mov eax, dword [ebx + 0x3c]
add eax, 0xf8
push eax
push edi
mov ecx, esi
call fcn.100033d0
test eax, eax
je 0x100048dd
mov edi, dword [ebx + 0x3c]
add edi, ebx
cmp dword [edi], 0x4550
jne 0x10004742
cmp word [edi + 4], 0x14c
jne 0x10004742
mov ebx, dword [edi + 0x38]
test bl, 1
jne 0x10004742
movzx eax, word [edi + 6]
test eax, eax
movzx ecx, word [edi + 0x14]
lea ecx, [ecx + edi + 0x18]
jbe 0x1000471d
add ecx, 0xc
mov esi, eax
nop
mov edx, dword [ecx + 4]
test edx, edx
mov eax, dword [ecx]
jne 0x1000470d
add eax, ebx
jmp 0x1000470f
add eax, edx
cmp eax, ebp
jbe 0x10004715
mov ebp, eax
add ecx, 0x28
sub esi, 1
jne 0x10004700
lea edx, [esp + 0x18]
push edx
call dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 0x50]
lea eax, [ecx - 1]
lea esi, [edx + ecx - 1]
not eax
lea ecx, [ecx + ebp - 1]
and esi, eax
and ecx, eax
cmp esi, ecx
je 0x10004759
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x2c
ret 0x18
mov edx, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push esi
push edx
call ebx
mov ebp, eax
test ebp, ebp
jne 0x10004784
push 4
push 0x3000
push esi
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x100047a8
push 0x34
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x100047bc
push 0x8000
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x2c
ret 0x18
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esi + 4], ebp
movzx eax, word [edi + 0x16]
shr eax, 0xd
and eax, 1
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x28], ecx
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x30], edx
mov eax, dword [edi + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.100033d0
test eax, eax
je 0x100048d3
mov edx, dword [edi + 0x54]
push 4
push 0x1000
push edx
push ebp
call ebx
mov ecx, dword [esp + 0x40]
mov ebx, eax
mov eax, dword [edi + 0x54]
push eax
push ecx
push ebx
call fcn.100032c0
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 0x3c]
mov ecx, dword [esp + 0x50]
add esp, 0xc
push esi
push edi
add ebx, edx
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi], ebx
push eax
mov dword [ebx + 0x34], ebp
call fcn.100033f0
test eax, eax
je 0x100048d3
mov edx, dword [esi]
mov eax, dword [edx + 0x34]
sub eax, dword [edi + 0x34]
je 0x1000486c
mov ecx, dword [esp + 0x10]
push eax
push esi
call fcn.10003760
mov dword [esi + 0x18], eax
jmp 0x10004873
mov dword [esi + 0x18], 1
mov ecx, dword [esp + 0x10]
push esi
call fcn.100037f0
test eax, eax
je 0x100048d3
mov ecx, dword [esp + 0x10]
push esi
call fcn.100035d0
test eax, eax
je 0x100048d3
mov ecx, dword [esp + 0x10]
push esi
call fcn.10003720
test eax, eax
je 0x100048d3
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x1000490d
cmp dword [esi + 0x14], 0
je 0x100048fc
mov ecx, dword [0x10045ac8]
mov edx, dword [0x10045ac4]
push ecx
add ebp, eax
mov eax, dword [0x10045ac0]
push edx
push eax
call ebp
test eax, eax
jne 0x100048e9
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x10]
push esi
call fcn.10003ac0
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x2c
ret 0x18
pop ebx
pop edi
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebp
add esp, 0x2c
ret 0x18
add eax, ebp
pop ebx
mov dword [esi + 0x2c], eax
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x2c
ret 0x18
pop ebx
pop edi
mov dword [esi + 0x2c], 0
mov eax, esi
pop esi
pop ebp
add esp, 0x2c
ret 0x18