Function at 0x410384
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor ecx, ecx
push ebp
push 0x4105bf
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 4], eax
push 1
push 0x2000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4103e9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4105d9
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
sub edx, dword [eax + 0x34]
mov dword [ebp - 8], edx
push 4
push 0x1000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x41041a
call fcn.0040a5a8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call fcn.0040289c
lea eax, [ebp - 0x24]
push eax
push 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 4]
lea esi, [eax + 0x18]
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x14]
add esi, eax
mov eax, dword [ebp - 4]
movzx edi, word [eax + 6]
dec edi
test edi, edi
jl 0x4104bb
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
lea edx, [ebx + ebx*4]
mov edx, dword [esi + edx*8 + 0x10]
mov dword [ebp - 0x20], edx
cmp eax, dword [ebp - 0x20]
jae 0x41047c
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x10]
push 4
push 0x1000
push eax
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0xc]
add eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4104a2
call fcn.0040a5a8
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x14]
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
call fcn.0040289c
inc ebx
dec edi
jne 0x41045f
cmp dword [0x43f31c], 0
jne 0x4104d5
mov dl, 1
mov eax, dword [0x40eb30]
call fcn.00403bf0
mov dword [0x43f31c], eax
mov edx, dword [0x40fee0]
mov eax, 0x14
call fcn.0040594c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, 0x14
call fcn.00403114
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov edx, dword [ebp - 0x10]
mov eax, dword [0x43f31c]
call fcn.0040f474
mov eax, dword [ebp - 4]
add eax, 0xa0
mov edx, dword [eax]
test edx, edx
je 0x410535
push ebp
add edx, dword [ebp - 0xc]
mov eax, edx
call fcn.00410230
pop ecx
mov eax, dword [ebp - 4]
add eax, 0x80
mov edx, dword [eax]
test edx, edx
je 0x41054f
push ebp
add edx, dword [ebp - 0xc]
mov eax, edx
call fcn.00410294
pop ecx
mov eax, dword [ebp - 4]
add eax, 0x78
mov edx, dword [eax]
test edx, edx
je 0x41056d
add edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], edx
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
movzx edi, word [eax + 6]
dec edi
test edi, edi
jl 0x4105af
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*4]
lea eax, [esi + eax*8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x24]
call fcn.00410360
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualProtect
inc ebx
dec edi
jne 0x41057c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4105d9
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret