Function at 0x11003f17
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x3c]
add esi, ebx
cmp dword [esi], 0x4550
je 0x11003f53
mov esi, 0x11005020
push 0x11001ae0
mov eax, esi
call fcn.110046b8
push 0x11001ce8
call fcn.1100467f
jmp 0x1100406b
push edi
push 0x40
push 0x1000
push dword [esi + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
mov dword [ebp - 8], edi
jne 0x11003f8a
mov esi, 0x11005020
push 0x11001ae0
mov eax, esi
call fcn.110046b8
push 0x11001cf8
jmp 0x11004120
mov edx, dword [esi + 0x54]
push ebx
call fcn.11004721
movzx eax, word [esi + 0x14]
pop ecx
movzx ecx, word [esi + 6]
test ecx, ecx
lea eax, [eax + esi + 0x18]
jbe 0x11003fdd
lea edx, [eax + 0x14]
lea ebx, [eax + 0xc]
mov dword [ebp - 4], edx
lea esi, [eax + 0x10]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x11003fce
mov ecx, dword [ebp + 8]
mov edx, dword [esi]
add eax, ecx
push eax
mov eax, dword [ebx]
add eax, edi
call fcn.11004721
pop ecx
add dword [ebp - 4], 0x28
add esi, 0x28
add ebx, 0x28
dec dword [ebp - 0xc]
jne 0x11003fb3
mov ecx, dword [edi + 0x3c]
add ecx, edi
mov edx, dword [ecx + 0xa4]
test edx, edx
mov dword [ebp - 0xc], edx
je 0x11004054
mov eax, dword [ecx + 0xa0]
mov esi, edi
sub esi, dword [ecx + 0x34]
add eax, edi
test edx, edx
jbe 0x11004054
mov ebx, dword [eax + 4]
sub ebx, 8
mov dword [ebp - 4], ebx
mov ebx, dword [eax]
mov dword [ebp - 0x14], ebx
lea ebx, [eax + 8]
mov dword [ebp + 8], ebx
je 0x11004049
mov edx, dword [ebp + 8]
movzx edx, word [edx]
movzx edx, dx
mov ebx, edx
shr ebx, 0xc
je 0x11004038
cmp ebx, 3
jne 0x11004072
and edx, 0xfff
add edx, dword [ebp - 0x14]
add edx, edi
add dword [edx], esi
sub dword [ebp - 4], 2
add dword [ebp + 8], 2
cmp dword [ebp - 4], 0
ja 0x11004016
mov edx, dword [ebp - 0xc]
sub edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], edx
jne 0x11004000
cmp dword [ecx + 0x84], 0
je 0x11004067
mov ebx, dword [ecx + 0x80]
add ebx, edi
jne 0x110040e6
mov dword [ebp - 0x10], edi
pop edi
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
leave
ret
mov esi, 0x11005020
push 0x11001ae0
mov eax, esi
call fcn.110046b8
push 0x11001d08
jmp 0x11004120
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 8], eax
je 0x110040f2
mov esi, dword [ebx]
add esi, edi
mov edi, dword [ebx + 0x10]
add edi, dword [ebp - 8]
jmp 0x110040da
mov ecx, 0x80000000
mov edx, eax
and edx, ecx
cmp edx, ecx
je 0x110040bf
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx + 2]
jmp 0x110040c4
and eax, 0xffff
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1100410a
mov dword [edi], eax
add esi, 4
add edi, 4
mov eax, dword [esi]
test eax, eax
jne 0x110040a9
mov edi, dword [ebp - 8]
add ebx, 0x14
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x1100408d
jmp 0x11004067
mov esi, 0x11005020
push 0x11001ae0
mov eax, esi
call fcn.110046b8
push 0x11001d18
jmp 0x11004120
mov esi, 0x11005020
push 0x11001ae0
mov eax, esi
call fcn.110046b8
push 0x11001d28
call fcn.1100467f
jmp 0x1100406a