Function at 0x402607
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x3c]
add edi, ebx
cmp dword [edi], 0x4550
je 0x40263c
mov ax, word [ebx + 0xa]
and ax, 0x11
mov ecx, 0x111
cmp ax, cx
je 0x40263c
push ecx
push 0x401624
jmp 0x402850
push 0x40
push 0x1000
push dword [edi + 0x50]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x402677
push ecx
push 0x401634
call fcn.0040248a
push 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, 0x406048
call fcn.00402423
jmp 0x402855
push dword [edi + 0x54]
push ebx
push esi
call dword [0x406020]
movzx edx, word [edi + 6]
movzx eax, word [edi + 0x14]
add esp, 0xc
mov dword [ebp - 0x10], edx
test edx, edx
je 0x4026eb
movzx edx, word [edi + 0x14]
lea ecx, [edi + 0x24]
add ecx, eax
add eax, 0x2c
add eax, edi
add edi, 0x28
add edi, edx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
cmp dword [eax], 0
mov ecx, dword [ebp - 4]
je 0x4026d6
mov eax, dword [eax]
push dword [edi]
add eax, ebx
push eax
mov eax, dword [ecx]
add eax, esi
push eax
call dword [0x406020]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
add esp, 0xc
add eax, 0x28
add ecx, 0x28
add edi, 0x28
dec edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
jne 0x4026b0
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x10], edi
call fcn.00403505
sub eax, dword [0x406040]
cmp eax, 0x7fff
ja 0x402855
mov edx, dword [edi + 0xa4]
test edx, edx
je 0x402774
mov ecx, dword [edi + 0xa0]
mov eax, esi
sub eax, dword [edi + 0x34]
add ecx, esi
mov dword [ebp - 0xc], eax
test edx, edx
je 0x402774
mov edi, dword [ecx]
lea eax, [ecx + 4]
mov dword [ebp - 0x14], edi
mov ebx, dword [eax]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea ecx, [ecx + 8]
sub ebx, 8
je 0x402770
movzx eax, word [ecx]
mov dword [ebp - 4], eax
shr dword [ebp - 4], 0xc
cmp dword [ebp - 4], 0
je 0x402766
cmp dword [ebp - 4], 3
jne 0x402793
mov edi, dword [ebp - 0xc]
and eax, 0xfff
add eax, dword [ebp - 0x14]
add dword [eax + esi], edi
mov edi, dword [ebp - 0x10]
dec ebx
add ecx, 2
dec ebx
jne 0x40273f
mov eax, dword [ebp - 0x18]
sub edx, dword [eax]
jne 0x402727
xor eax, eax
cmp dword [edi + 0x84], eax
je 0x40278c
mov edi, dword [edi + 0x80]
add edi, esi
jne 0x40283a
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
push ecx
push 0x401648
jmp 0x402850
lea ebx, [eax + esi]
call fcn.00403505
sub eax, dword [0x406040]
cmp eax, 0x7fff
ja 0x402855
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40285c
mov ebx, dword [edi]
mov edx, dword [edi + 0x10]
add ebx, esi
add edx, esi
mov dword [ebp - 0xc], edx
jmp 0x402831
xor eax, eax
mov edx, eax
mov dword [ebp - 0x18], eax
test ecx, ecx
js 0x402804
lea eax, [esi + 2]
add eax, ecx
push eax
mov dword [ebp - 4], eax
call dword [0x406018]
pop ecx
mov ecx, dword [ebp - 0x18]
mov word [ebp - 8], ax
mov word [ebp - 6], ax
lea edx, [ebp - 8]
xor eax, eax
jmp 0x402807
movzx ecx, word [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
movzx eax, cx
push eax
push edx
push dword [ebp - 0x14]
call dword [0x406038]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40284a
mov eax, dword [ebp - 0xc]
add ebx, 4
mov dword [eax], ecx
add eax, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebx]
test ecx, ecx
jne 0x4027d7
add edi, 0x14
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x40279e
jmp 0x40278c
push ecx
push 0x401668
call fcn.0040248a
xor eax, eax
jmp 0x40278e
push ecx
push 0x401658
jmp 0x402850