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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
or dword [ebp - 0x20], 0xffffffff
mov eax, ecx
mov dword [ebp - 0x1c], eax
push ebx
push esi
mov ecx, dword [eax + 0x1b8]
mov esi, edx
mov eax, dword [eax]
mov dword [ebp - 0x30], ecx
xor ecx, ecx
push edi
mov dword [ebp - 0x14], esi
test byte [eax + 0x40], 1
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], eax
je 0x66f5f8
xor eax, eax
jmp 0x66faf8
imul eax, dword [ebp + 8], 0x50
cmp dword [ebp + 0x10], 0
mov edx, dword [esi + 0x1c]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov ecx, dword [eax + edx + 0x38]
mov edi, dword [eax + edx + 0x1c]
mov dword [ebp - 0x38], ecx
je 0x66f652
test ebx, ebx
jne 0x66f5f1
cmp dword [edx], 1
jg 0x66f5f1
mov eax, dword [esi + 0x20]
test eax, eax
je 0x66f632
test dword [eax + 4], 0x200000
jne 0x66f5f1
mov ecx, dword [esi]
call fcn.00657f1d
test eax, 0x200000
jne 0x66f5f1
mov ecx, dword [esi + 0x2c]
call fcn.00657f1d
test eax, 0x200000
jne 0x66f5f1
mov edx, dword [ebp - 0x10]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x1c]
test eax, eax
je 0x66f662
cmp dword [esi + 0x38], 0
jne 0x66f5f1
cmp dword [edi + 0x3c], 0
jne 0x66f5f1
test dword [esi + 8], 0x100
je 0x66f679
test eax, eax
jne 0x66f5f1
cmp dword [ecx], 0
je 0x66f5f1
test byte [edi + 8], 1
jne 0x66f5f1
test eax, eax
je 0x66f6a1
cmp dword [edx], 1
jg 0x66f5f1
test ebx, ebx
jne 0x66f5f1
mov ecx, dword [esi + 8]
and ecx, 1
je 0x66f6b3
cmp dword [ebp + 0x10], 0
jne 0x66f5f1
cmp dword [esi + 0x2c], 0
je 0x66f6c3
cmp dword [edi + 0x2c], 0
jne 0x66f5f1
test ebx, ebx
je 0x66f6d1
cmp dword [edi + 0x2c], 0
jne 0x66f5f1
test eax, eax
je 0x66f6eb
cmp dword [esi + 0x20], 0
jne 0x66f5f1
test eax, eax
je 0x66f6eb
test ecx, ecx
jne 0x66f5f1
test dword [edi + 8], 0x3000
jne 0x66f5f1
test dword [esi + 8], 0x2000
je 0x66f70b
cmp dword [edi + 0x30], 0
jne 0x66f5f1
mov eax, dword [ebp - 0xc]
test byte [eax + edx + 0x2c], 0x20
je 0x66f73c
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x24], 1
cmp dword [eax], 1
jg 0x66f5f1
test ebx, ebx
jne 0x66f5f1
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x38], ebx
jne 0x66f5f1
lea eax, [edi + 0x30]
cmp dword [eax], 0
mov dword [ebp - 0x2c], eax
je 0x66f7b6
cmp dword [edi + 0x2c], 0
jne 0x66f5f1
test ebx, ebx
jne 0x66f5f1
test ecx, ecx
jne 0x66f5f1
cmp dword [edx], 1
jne 0x66f5f1
test byte [edi + 8], 9
jne 0x66f5f1
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x66f785
cmp byte [edi + 4], 0x74
jne 0x66f5f1
mov eax, dword [edi + 0x1c]
cmp dword [eax], 1
jl 0x66f5f1
mov edi, ecx
test edi, edi
jne 0x66f76a
mov ebx, dword [esi + 0x2c]
test ebx, ebx
je 0x66f7b6
cmp dword [ebx], ecx
jle 0x66f7b6
lea eax, [ebx + 0x1c]
cmp word [eax], di
je 0x66f5f1
inc ecx
add eax, 0x18
cmp ecx, dword [ebx]
jl 0x66f7a5
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x1c]
mov ecx, ebx
mov eax, dword [eax + edx + 0x10]
mov dword [ebx + 0x1b8], eax
xor eax, eax
push eax
push eax
push eax
push 0x15
pop edx
call fcn.0065d74f
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebx + 0x1b8], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x66f872
mov eax, dword [ebp - 0x14]
mov edx, eax
mov ebx, dword [esi + 0x2c]
mov edi, dword [esi + 0x38]
mov esi, dword [esi + 0x3c]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x18], ecx
xor ecx, ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
push ecx
mov ecx, dword [ebp - 8]
call fcn.00657b37
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x3c], esi
mov esi, eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x38], edi
mov dword [esi + 0x2c], ebx
mov byte [esi + 4], 0x74
test ecx, ecx
jne 0x66f846
mov dword [esi + 0x30], eax
jmp 0x66f856
mov dword [ecx + 0x30], eax
test eax, eax
je 0x66f850
mov dword [eax + 0x34], ecx
mov dword [ecx + 0x34], esi
mov dword [esi + 0x30], ecx
mov edi, dword [ebp - 8]
cmp byte [edi + 0x45], 0
jne 0x66faf5
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x66f7f1
jmp 0x66f875
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + eax + 0x1c]
mov ebx, ecx
mov edx, dword [edx + eax + 0xc]
mov dword [ebp - 0x3c], ecx
mov ecx, edi
mov dword [ebp - 0x30], ebx
call fcn.00632404
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax + 0x10]
mov ecx, edi
call fcn.00632404
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax + 0x14]
mov ecx, edi
call fcn.00632404
mov edi, dword [ebp - 0x10]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + edi + 0x18]
mov dword [eax + edi + 0xc], ecx
mov dword [eax + edi + 0x10], ecx
mov dword [eax + edi + 0x14], ecx
mov dword [eax + edi + 0x1c], ecx
test edx, edx
je 0x66f909
mov eax, dword [edx + 0x20]
cmp eax, 1
jne 0x66f8fc
mov eax, dword [ebp - 0x1c]
mov ecx, eax
cmp dword [eax + 0x78], 0
cmovne ecx, dword [eax + 0x78]
mov eax, dword [ecx + 0x1c8]
mov dword [edx + 0x4c], eax
mov dword [ecx + 0x1c8], edx
xor ecx, ecx
jmp 0x66f900
dec eax
mov dword [edx + 0x20], eax
mov edx, dword [ebp - 0xc]
mov dword [edx + edi + 0x18], ecx
jmp 0x66f90b
mov edx, eax
mov eax, dword [ebx + 0x1c]
mov byte [ebp - 1], cl
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x2c], eax
mov edi, dword [eax]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x66f92f
mov eax, dword [ebp - 0x10]
mov al, byte [edx + eax + 0x2c]
mov byte [ebp - 1], al
jmp 0x66f94f
mov ecx, dword [ebp - 8]
xor eax, eax
push eax
push eax
xor edx, edx
call fcn.00661253
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [esi + 0x1c], ecx
test ecx, ecx
je 0x66fae8
cmp edi, 1
jle 0x66f981
mov eax, dword [ebp + 8]
mov edx, ecx
mov ecx, dword [ebp - 8]
inc eax
push eax
lea eax, [edi - 1]
push eax
call fcn.0066116f
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x1c], ecx
mov dword [ebp - 0x18], ecx
cmp byte [eax + 0x45], 0
je 0x66f984
mov edi, eax
jmp 0x66faeb
mov eax, dword [ebp - 8]
test edi, edi
jle 0x66f9e3
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0xc]
add esi, 8
mov ebx, dword [ebp - 0x34]
add edi, 8
add edi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
mov edx, dword [edi + 0x38]
mov ecx, eax
call fcn.006610ed
push 0x14
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2c]
push 0x50
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x20], eax
xor eax, eax
push eax
push esi
call fcn.0068ab50
mov edi, dword [ebp - 0x28]
add esi, 0x50
mov eax, dword [ebp - 8]
add edi, 0x50
add esp, 0xc
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], esi
dec ebx
jne 0x66f99f
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov al, byte [ebp - 1]
mov byte [edx + ecx + 0x2c], al
xor ecx, ecx
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x66fa14
mov edx, ecx
cmp dword [eax], ecx
jle 0x66fa0e
lea ecx, [eax + 0x1c]
xor edi, edi
inc edx
mov word [ecx], di
lea ecx, [ecx + 0x18]
cmp edx, dword [eax]
jl 0x66f9ff
xor ecx, ecx
mov dword [esi + 0x2c], eax
mov dword [ebx + 0x2c], ecx
mov edx, dword [ebx + 0x20]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00657837
cmp dword [ebp - 0x24], 0
mov edi, eax
pop ecx
jle 0x66fa33
mov edx, dword [ebp - 0x20]
mov ecx, edi
call fcn.0066c658
cmp dword [ebp + 0x10], 0
je 0x66fa73
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], eax
push eax
mov dword [esi + 0x20], edi
xor eax, eax
mov edi, dword [ebp - 8]
mov ecx, edi
mov edx, dword [ebx + 0x28]
push eax
call fcn.00657837
pop ecx
mov edx, eax
mov ecx, edi
call fcn.00657248
mov dword [esi + 0x28], eax
xor eax, eax
mov edx, dword [ebx + 0x24]
pop ecx
push eax
mov ecx, edi
call fcn.00657855
mov dword [esi + 0x24], eax
jmp 0x66fa85
push dword [esi + 0x20]
mov edx, edi
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.00657248
mov dword [esi + 0x20], eax
cmp byte [edi + 0x45], 0
pop ecx
jne 0x66fab7
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], eax
mov edx, esi
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx]
mov dword [ebp - 0x40], eax
xor eax, eax
push eax
call fcn.0066f524
pop ecx
mov eax, dword [ebx + 8]
xor ecx, ecx
and eax, 1
or dword [esi + 8], eax
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x66facf
mov dword [esi + 0x38], eax
mov dword [ebx + 0x38], ecx
mov esi, dword [esi + 0x30]
mov ebx, dword [ebx + 0x30]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x30], ebx
test esi, esi
jne 0x66f90b
jmp 0x66faeb
mov edi, dword [ebp - 8]
mov edx, dword [ebp - 0x3c]
mov ecx, edi
call fcn.0066c436
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret