Function at 0x1000c1e0
Capabilities:
Enumerate pe sections
Parse pe header
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push ebx
mov ecx, 0x5a4d
push esi
push edi
cmp word [eax], cx
je 0x1000c20a
push str.Not_a_valid_executable_file._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
je 0x1000c22d
push str.No_PE_header_found._n
call fcn.1004855e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push edx
push 0
call esi
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x1000c278
mov eax, dword [edi + 0x50]
push 4
push 0x2000
push eax
push ebx
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000c276
push str.Cant_reserve_memory
call fcn.1004855e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, eax
push 0x20
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x1000c201
push 4
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov ecx, dword [edi + 0x50]
push 0x1000
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [edi + 0x54]
push 4
push 0x1000
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000c201
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x54]
add ecx, dword [eax + 0x3c]
push ecx
push eax
push ebx
call fcn.10049af0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
add esp, 0xc
lea eax, [edx + ebx]
mov ebx, dword [ebp - 4]
push esi
push edi
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], ebx
call fcn.1000bdb0
mov eax, ebx
add esp, 0xc
sub eax, dword [edi + 0x34]
je 0x1000c317
push eax
mov eax, esi
call fcn.1000bf40
add esp, 4
push esi
call fcn.1000bfe0
add esp, 4
push esi
call fcn.1000be60
mov eax, dword [esi]
movzx ecx, word [eax + 0x14]
xor edx, edx
add esp, 4
xor ebx, ebx
lea edi, [ecx + eax + 0x18]
cmp dx, word [eax + 6]
jae 0x1000c38f
lea ecx, [ecx]
mov ecx, str..text
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000c367
test dl, dl
je 0x1000c363
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000c367
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000c347
xor eax, eax
jmp 0x1000c36c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000c380
mov eax, dword [esi]
movzx ecx, word [eax + 6]
inc ebx
add edi, 0x28
cmp ebx, ecx
jl 0x1000c340
jmp 0x1000c38f
mov edx, dword [edi + 0x10]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0xc]
add eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x1000c3e5
mov ebx, dword [ebp - 4]
lea edi, [eax + ebx]
test edi, edi
jne 0x1000c3bd
push str.Library_has_no_entry_point._n
call fcn.1004855e
add esp, 4
call fcn.1000c4d0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push str.Found_library_Entry_point__p._n
call fcn.1004855e
push str.____Executing_DLL_entry_point._n
call fcn.1004855e
add esp, 0xc
push esi
push 1
push ebx
call edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret