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

Disassembly:
sub esp, 0x6c
xor eax, eax
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], al
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
push ebp
mov ebp, dword [esp + 0x80]
mov ecx, dword [eax]
push esi
mov dword [esp + 0x1c], ecx
push edi
mov edx, dword [eax + 4]
lea ebx, [ebp + 0x2c]
mov dword [esp + 0x24], edx
lea edi, [ebp + 4]
mov ecx, dword [eax + 8]
mov esi, ebx
mov dword [esp + 0x28], ecx
mov ecx, 0xa
mov edx, dword [eax + 0xc]
mov dword [esp + 0x88], edi
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp]
push edx
lea edx, [esp + 0x24]
push ebx
mov eax, dword [ecx]
push edx
call dword [eax + 4]
cmp eax, 4
ja case.0x66ebbb.0
jmp dword [eax*4 + 0x66ed80]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x14
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x14
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x14
mov eax, dword [ebp + 0x30]
mov word [ebp + 0x58], 0
mov dword [ebp + 0x54], eax
mov eax, dword [esp + 0x80]
test eax, eax
je 0x66ec4a
mov eax, dword [esp + 0x90]
mov ecx, dword [ebp]
push eax
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x90]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
cmp ecx, eax
jne 0x66ec62
cmp edx, esi
je 0x66ecb7
cmp byte [esp + 0x50], 0
je 0x66eca2
lea ecx, [esp + 0x10]
lea edx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x48]
call fcn.005fa851
mov ecx, dword [eax]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x44], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], edx
mov byte [esp + 0x50], 1
jmp 0x66ecb7
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], esi
mov byte [esp + 0x50], 1
inc word [ebp + 0x58]
mov ecx, 0xa
mov esi, ebx
lea edi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
lea edx, [esp + 0x24]
push ebx
push edx
call dword [eax + 4]
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x54]
cmp eax, ecx
je 0x66ec1d
mov eax, dword [esp + 0x40]
mov ecx, 0xa
lea esi, [esp + 0x54]
mov edi, ebx
mov edx, dword [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edi
mov ecx, dword [esp + 0x84]
cmp dword [ecx], eax
jg 0x66ed36
cmp dword [ecx + 4], edx
jg 0x66ed36
cmp dword [ecx + 8], esi
jl 0x66ed36
cmp dword [ecx + 0xc], edi
jge 0x66ed5c
mov ecx, dword [ebp + 0x54]
mov eax, 2
cmp ecx, eax
je 0x66ed6d
mov esi, dword [esp + 0x88]
mov ecx, 0xa
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x14
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x14