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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0xa8
mov edi, ecx
xor eax, eax
mov edx, dword [esp + 0xc0]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x6c]
push dword [edx + 4]
push dword [edx]
push eax
call fcn.00660a50
push 0x858c40
lea ecx, [esp + 0x70]
call fcn.0069fea0
movzx eax, al
test eax, eax
jne 0x66b20b
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ebx
jmp 0x66b21d
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc4]
lea edx, [esp + 0x38]
push dword [eax + 4]
mov ecx, edi
push dword [eax]
push edx
call fcn.00660a50
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebp
push 0x858c40
lea ecx, [esp + 0x70]
call fcn.0069fea0
movzx eax, al
test eax, eax
jne 0x66b584
lea edx, [esp + 0x18]
lea eax, [esp + 0x6c]
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.0069fd20
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0xc0]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov ebp, dword [esi + 4]
lea edx, [ebx + edx - 1]
lea eax, [ecx + eax - 1]
mov dword [esp + 0x68], ebp
mov ebp, dword [esi]
mov dword [esp + 0x64], ebp
cmp ebx, edx
mov ebp, dword [esp + 0xc4]
mov esi, dword [ebp + 4]
mov dword [esp + 0x5c], esi
mov esi, dword [ebp]
jle 0x66b2f2
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x90], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x68], edx
mov dword [esp + 0x5c], ebx
jmp 0x66b300
mov dword [esp + 0x90], edx
mov dword [esp + 0x8c], ebx
cmp ecx, eax
jle 0x66b31e
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x64], esi
mov esi, eax
jmp 0x66b32c
mov dword [esp + 0x98], eax
mov dword [esp + 0x94], ecx
lea edx, [esp + 0x48]
lea eax, [esp + 0x4c]
push eax
mov ecx, dword [edi + 0x1b4]
mov ebx, dword [ecx]
push edx
call dword [ebx + 0x21c]
lea ebx, [esp + 0x50]
lea edx, [esp + 0x54]
xor ebp, ebp
mov dword [esp + 0x50], ebp
lea ecx, [edi + 0x150]
mov dword [esp + 0x54], ebp
mov eax, dword [ecx]
mov dword [esp + 0x58], ecx
push edx
push ebx
push ebp
push ebp
call dword [eax + 0x18]
mov eax, dword [esp + 0x50]
push 1
neg eax
mov ecx, edi
push eax
call fcn.0065fa80
mov ebp, eax
mov eax, dword [esp + 0x54]
mov edx, dword [edi + 0x220]
mov ecx, dword [edi + 0x224]
lea ebx, [edi + 0x234]
neg eax
mov dword [esp + 0x60], ebx
mov byte [esp + 0x14], 1
mov dword [esp + 0xc], ebx
mov ebx, dword [edi + 0x1cc]
mov dword [esp + 0x10], ebx
call fcn.0065fda0
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x50]
push 1
push eax
mov ecx, edi
call fcn.0065fa80
mov ebx, eax
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x54]
mov edx, dword [esp + 0x60]
mov ecx, dword [edi + 0x224]
mov byte [esp + 0x14], 1
mov dword [esp + 0xc], edx
mov edx, dword [edi + 0x1cc]
mov dword [esp + 0x10], edx
mov edx, dword [edi + 0x220]
call fcn.0065fda0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0xa0]
cmp ecx, edx
cmovge edx, ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xa0], edx
cmp esi, eax
cmovl eax, esi
mov esi, dword [esp + 0x68]
cmp esi, ebp
cmovge ebp, esi
cmp ecx, ebx
cmovl ebx, ecx
cmp edx, eax
jg 0x66b698
mov dword [esp + 0x68], edi
lea ecx, [ebx + 1]
mov dword [esp + 0x5c], ecx
mov esi, ebp
cmp ebp, ebx
jg 0x66b68f
mov dword [esp + 0xa4], edx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xa4]
cmp eax, dword [esp + 0xa0]
je 0x66b497
cmp eax, dword [esp + 0x64]
je 0x66b497
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x60]
cmp esi, ebp
jne 0x66b555
mov dword [esp + 0x5c], eax
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x60], ebp
lea eax, [esp + 0x7c]
push esi
push dword [esp + 0xa8]
push eax
mov ecx, dword [esp + 0x74]
call fcn.00660a50
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov ebp, dword [esp + 0x84]
mov ebx, dword [esp + 0x88]
mov edi, dword [esp + 0x8c]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x6c], eax
cmp eax, edi
cmovl edi, eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebx
mov dword [esp + 0x8c], edi
cmp edx, ecx
cmovl ecx, edx
mov dword [esp + 0x94], ecx
add eax, ebp
add edx, ebx
mov ebp, dword [esp + 0x90]
cmp eax, ebp
cmovge ebp, eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x90], ebp
cmp edx, eax
cmovge eax, edx
mov dword [esp + 0x98], eax
inc esi
cmp esi, dword [esp + 0x9c]
jle 0x66b45b
mov edx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
inc edx
cmp edx, eax
jle 0x66b43b
jmp 0x66b5bb
cmp esi, ebx
je 0x66b488
mov esi, eax
cmp eax, ebx
jle 0x66b480
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
inc edx
cmp edx, eax
jle 0x66b43b
jmp 0x66b698
mov edx, dword [0x858c40]
mov eax, dword [esp + 0xbc]
mov dword [eax], edx
mov ecx, dword [0x858c44]
mov dword [eax + 4], ecx
mov ebx, dword [0x858c48]
mov dword [eax + 8], ebx
mov ebp, dword [0x858c4c]
mov dword [eax + 0xc], ebp
add esp, 0xa8
pop ebx
pop ebp
pop esi
pop edi
ret 0xc
mov ebx, dword [esp + 0x58]
lea edx, [esp + 0x8c]
lea eax, [esp + 0x94]
push eax
mov ebp, dword [ebx]
push edx
push ecx
mov ecx, ebx
push edi
call dword [ebp + 0x18]
mov ecx, ebx
lea edx, [esp + 0x90]
lea eax, [esp + 0x98]
push eax
mov ebx, dword [ecx]
push edx
push dword [esp + 0xa0]
push dword [esp + 0x9c]
call dword [ebx + 0x18]
mov ebx, dword [esp + 0x90]
test ebx, ebx
jl 0x66b631
mov ebp, dword [esp + 0x98]
test ebp, ebp
jl 0x66b631
mov edx, dword [esp + 0x8c]
mov esi, dword [esp + 0x48]
cmp edx, esi
jg 0x66b631
mov ecx, dword [esp + 0x94]
mov edi, dword [esp + 0x4c]
cmp ecx, edi
jle 0x66b652
mov eax, dword [esp + 0xbc]
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
add esp, 0xa8
pop ebx
pop ebp
pop esi
pop edi
ret 0xc
xor eax, eax
cmp edx, 0
cmovle edx, eax
cmp ecx, 0
cmovle ecx, eax
mov eax, dword [esp + 0xbc]
cmp esi, ebx
cmovl ebx, esi
cmp edi, ebp
cmovl ebp, edi
sub ebx, edx
inc ebx
sub ebp, ecx
inc ebp
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
add esp, 0xa8
pop ebx
pop ebp
pop esi
pop edi
ret 0xc
inc edx
cmp edx, eax
jle 0x66b43b
mov edi, dword [esp + 0x8c]
mov ecx, dword [esp + 0x94]
jmp 0x66b5bb