Function at 0x66e630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov ebx, ecx
add ebx, ebx
inc ebx
test ebx, ebx
js 0x66e649
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x66e642
mov edx, esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x14]
inc ecx
mov eax, dword [ebp - 0x18]
mov edx, dword [0x66dd9c]
call fcn.0040c3c4
lea eax, [ebp - 0xc]
mov edx, dword [0x66de70]
call fcn.0040c104
xor eax, eax
push ebp
push 0x66e889
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x1c], eax
push 1
push 0x2000
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x50]
push eax
push 0
call sub.KERNEL32.DLL_VirtualAlloc_1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
sub edx, dword [eax + 0x34]
mov dword [ebp - 0x20], edx
push 4
push 0x1000
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_VirtualAlloc_1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x54]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.00407394
lea eax, [ebp - 0x30]
push eax
push 2
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x54]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_VirtualProtect
mov eax, dword [ebp - 0x1c]
lea esi, [eax + 0x18]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0x14]
add esi, eax
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x66e784
inc eax
mov dword [ebp - 0x34], eax
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov edi, dword [esi + eax*8 + 8]
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x10]
mov dword [ebp - 0x2c], eax
cmp edi, dword [ebp - 0x2c]
jae 0x66e742
xor edi, dword [ebp - 0x2c]
xor dword [ebp - 0x2c], edi
xor edi, dword [ebp - 0x2c]
push 4
push 0x1000
push edi
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0xc]
add eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_VirtualAlloc_1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, edi
call fcn.00407f88
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x14]
add eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.00407394
inc ebx
dec dword [ebp - 0x34]
jne 0x66e723
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x28]
mov ebx, dword [ebp - 0x10]
add eax, ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
mov edx, dword [0x66de40]
call fcn.0040d3dc
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xa0]
test eax, eax
je 0x66e7bc
push ebp
add eax, ebx
call fcn.0066e43c
pop ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x80]
test eax, eax
je 0x66e7d3
push ebp
add eax, dword [ebp - 0x10]
call fcn.0066e4bc
pop ecx
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x66e80e
inc eax
mov dword [ebp - 0x34], eax
xor ebx, ebx
lea eax, [ebp - 0x30]
push eax
lea edi, [ebx + ebx*4]
mov eax, dword [esi + edi*8 + 0x24]
call fcn.0066e170
push eax
mov eax, dword [esi + edi*8 + 8]
push eax
mov eax, dword [esi + edi*8 + 0xc]
add eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_VirtualProtect
inc ebx
dec dword [ebp - 0x34]
jne 0x66e7e5
cmp dword [ebp - 8], 0
je 0x66e830
push 0
push 1
mov eax, dword [ebp - 0x10]
push eax
call dword [ebp - 8]
test al, al
jne 0x66e830
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
call fcn.0066ded4
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x78]
test eax, eax
je 0x66e84a
push ebp
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x7c]
add eax, dword [ebp - 0x10]
call fcn.0066e338
pop ecx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xc]
mov ecx, dword [0x66de70]
call fcn.0040c4a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66e890
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
inc ecx
mov edx, dword [0x66dd9c]
call fcn.0040c258
lea eax, [ebp - 0xc]
mov edx, dword [0x66de70]
call fcn.0040c1e0
ret