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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd0
cmp byte [ecx + 0x24], 0
mov esi, edx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], edx
je 0x66693c
mov eax, dword [0x94bccc]
test eax, eax
je 0x666aa0
mov eax, dword [esi + 0x20]
movsd xmm1, qword [esi + 0x10]
mov ebx, dword [ecx + 0x10]
movsd xmm0, qword [esi + 0x18]
movsd xmm2, qword [esi]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0x1c]
movsd qword [esp + 0x30], xmm1
movsd xmm1, qword [esi + 8]
movsd qword [esp + 0x38], xmm0
movsd qword [esp + 0x20], xmm2
cmp eax, ebx
movsd qword [esp + 0x28], xmm1
jne 0x6668de
add ecx, 0x10
call fcn.006671b0
mov ecx, dword [esp + 4]
mov ebx, dword [ecx + 0x10]
mov eax, dword [ecx + 0x1c]
mov edx, dword [ecx + 0x18]
mov edi, ecx
xor esi, esi
mov ecx, dword [ecx + 0x14]
add edx, eax
cmp edx, ebx
cmovae esi, ebx
inc eax
sub edx, esi
lea edx, [edx + edx*4]
mov dword [ecx + edx*8], 2
movsd xmm0, qword [esp + 0x20]
movsd xmm1, qword [esp + 0x28]
movsd qword [ecx + edx*8 + 4], xmm0
movsd qword [ecx + edx*8 + 0xc], xmm1
movsd xmm0, qword [esp + 0x30]
movsd qword [ecx + edx*8 + 0x14], xmm0
movsd xmm0, qword [esp + 0x38]
movsd qword [ecx + edx*8 + 0x1c], xmm0
mov esi, dword [esp + 0x40]
mov dword [ecx + edx*8 + 0x24], esi
mov dword [edi + 0x1c], eax
jmp 0x666a98
movzx eax, byte [esi + 0x1b]
movzx ebx, byte [esi + 0x1a]
mov edx, esi
mov ecx, dword [ecx + 0xc]
mov edi, dword [edx + 8]
mov bh, al
sub al, bl
movzx esi, al
mov eax, 0xffffffff
add esi, edi
cmovb esi, eax
add esi, dword [edx + 0x20]
cmovb esi, eax
test ecx, ecx
je 0x6669b3
mov edx, dword [esp + 4]
mov eax, dword [edx]
mov edx, dword [edx + 8]
sub eax, edx
cmp eax, esi
jae 0x6669b3
mov eax, edx
sub eax, ecx
mov dword [esp], eax
jb 0x66704d
mov eax, dword [esp + 4]
mov dword [eax + 8], 0
je 0x6669ac
mov eax, dword [eax + 4]
add ecx, eax
push dword [esp]
push ecx
push eax
call fcn.007bd9b0
mov eax, dword [esp + 0x10]
add esp, 0xc
mov ecx, dword [esp]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0
mov eax, dword [0x94bccc]
mov dl, bh
test eax, eax
je 0x666c0c
mov esi, dword [esp + 0xc]
lea eax, [esi + 0x10]
mov dword [esp], eax
jmp 0x6669ff
mov eax, dword [ecx + 4]
add eax, edi
push ebx
push esi
push eax
mov esi, ecx
call fcn.007bd9b0
add esp, 0xc
add edi, ebx
mov edx, ebx
mov dword [esi + 8], edi
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.00667060
movzx ebx, byte [esi + 0x1a]
movzx edx, byte [esi + 0x1b]
mov edi, dword [esi + 8]
mov eax, edx
sub al, bl
movzx eax, al
or eax, edi
je 0x666a20
mov ecx, dword [esp + 4]
cmp dl, bl
jne 0x666a40
mov esi, dword [esi + 4]
mov ebx, edi
test ebx, ebx
jne 0x666a5e
jmp 0x666a84
mov eax, esi
mov esi, dword [esi + 0x1c]
mov ecx, dword [esp + 4]
mov ebx, dword [eax + 0x20]
test ebx, ebx
jne 0x666a5e
jmp 0x666a84
movzx esi, bl
movzx ebx, dl
jb 0x667006
cmp dl, 0xa
ja 0x667014
sub ebx, esi
add esi, dword [esp]
test ebx, ebx
je 0x666a84
mov eax, dword [ecx]
mov edi, dword [ecx + 8]
sub eax, edi
cmp eax, ebx
jae 0x6669d0
mov edx, edi
push ebx
call fcn.007c54d0
mov ecx, dword [esp + 8]
add esp, 4
mov edi, dword [ecx + 8]
jmp 0x6669d0
mov edx, dword [esp + 0xc]
mov ecx, dword [edx]
lea eax, [edx + 0xc]
push edi
push dword [edx + 4]
push eax
call dword [ecx + 0xc]
add esp, 0xc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [0x94ae1c]
test al, al
je 0x666890
movzx eax, al
cmp eax, 1
je 0x666ada
cmp eax, 2
je 0x666b26
mov ecx, 0x94ae14
call fcn.007d3740
mov ecx, dword [esp + 4]
test al, al
je 0x666890
movzx eax, al
cmp eax, 2
je 0x666b26
mov eax, dword [0x94ae14]
mov edx, dword [0x94bfb8]
cmp edx, 2
jne 0x666890
cmp dword [0x94bcc0], 0
mov edx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov ecx, dword [0x94bcc8]
je 0x666b12
mov esi, dword [ecx + 8]
dec esi
and esi, 0xfffffff8
lea edx, [esi + edx + 8]
mov esi, dword [esp + 0xc]
push eax
push edx
call dword [ecx + 0x14]
add esp, 8
mov ecx, dword [esp + 4]
test al, al
je 0x666890
mov eax, dword [0x94ae14]
mov ebx, dword [eax + 0x20]
test ebx, ebx
je 0x667025
mov edi, dword [eax + 0x1c]
mov edx, dword [eax + 0x24]
mov esi, dword [eax + 0x28]
cmp ebx, 1
mov dword [esp + 0x98], 0x8ace78
mov dword [esp + 0x9c], 1
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa0], 0x93d1f8
mov dword [esp + 0xa4], 0
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], 0
je 0x667025
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], esi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x94], edx
mov dword [esp + 0x90], esi
mov dword [esp + 0x74], 1
mov dword [esp + 0x10], ebx
mov dword [esp], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x666e73
mov esi, dword [ecx + 0x10]
mov edx, dword [ecx + 0x18]
xor edi, edi
cmp edx, esi
mov ecx, esi
mov ebx, esi
cmovb ecx, edi
mov edi, eax
sub edx, ecx
sub ebx, edx
sub edi, ebx
ja 0x666e79
add eax, edx
mov esi, eax
jmp 0x666e77
movzx eax, byte [0x94ae10]
test al, al
je 0x6669c2
movzx eax, al
cmp eax, 1
je 0x666c44
cmp eax, 2
je 0x666c93
mov ecx, 0x94ae08
call fcn.007d3740
mov dl, bh
test al, al
je 0x6669c2
movzx eax, al
cmp eax, 2
je 0x666c93
mov eax, dword [0x94ae08]
mov ecx, dword [0x94bfb8]
cmp ecx, 2
jne 0x6669c2
cmp dword [0x94bcc0], 0
mov edx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov ecx, dword [0x94bcc8]
je 0x666c81
mov dword [esp], ecx
mov ecx, dword [esp]
mov ecx, dword [ecx + 8]
dec ecx
and ecx, 0xfffffff8
lea edx, [ecx + edx + 8]
mov ecx, dword [esp]
push eax
push edx
call dword [ecx + 0x14]
add esp, 8
test al, al
mov dl, bh
je 0x6669c2
mov eax, dword [0x94ae08]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x667039
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], eax
cmp ecx, 1
mov dword [esp], edx
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x98], 0x8ace54
mov dword [esp + 0x9c], 1
mov dword [esp + 0xa8], 0
mov dword [esp + 0xa0], 0x93d1f8
mov dword [esp + 0xa4], 0
mov dword [esp + 0x10], edx
mov edx, dword [esp]
mov dword [esp + 8], eax
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x60], 0
je 0x667039
mov edx, dword [eax + 8]
sub edx, dword [eax + 0xc]
mov eax, dword [esp]
cmp ecx, 2
mov dword [esp + 0x64], eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], 1
jbe 0x667039
mov edx, dword [esp]
mov dword [esp + 0x1c], esi
lea esi, [esp + 0x44]
mov dword [esp + 0xc0], esi
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x50]
mov dl, bh
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x98]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x64]
mov dword [esp + 0x28], 0x8a682c
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x34], 0x8a9914
mov dword [esp + 0x88], 2
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 0x8a9914
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 3
lea ecx, [eax + 0x1c]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb0], 1
mov dword [esp + 0x4c], ecx
mov eax, dword [0x94bfb8]
cmp eax, 2
jne 0x6669c2
cmp dword [0x94bcc0], 0
mov edx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov esi, dword [0x94bcc8]
je 0x666e3e
mov eax, dword [esi + 8]
dec eax
and eax, 0xfffffff8
lea edx, [eax + edx + 8]
lea eax, [esp + 0xb0]
mov dword [esp], edx
push eax
push edx
call dword [esi + 0x28]
add esp, 8
test al, al
mov dl, bh
je 0x6669c2
lea eax, [esp + 0xb0]
push eax
push dword [esp + 4]
call dword [esi + 0x2c]
mov dl, bh
add esp, 8
jmp 0x6669c2
xor edx, edx
xor esi, esi
xor edi, edi
mov eax, dword [esp + 8]
mov ebx, dword [esp]
lea ecx, [edx + edx*4]
sub ebx, eax
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x14]
lea ecx, [eax + ecx*8]
mov dword [esp + 0x20], ecx
lea ecx, [esi + esi*4]
lea esi, [esp + 0x20]
lea ecx, [eax + ecx*8]
mov dword [esp + 0x24], ecx
lea ecx, [edi + edi*4]
mov dword [esp + 0x28], eax
lea ecx, [eax + ecx*8]
mov dword [esp + 0x2c], ecx
mov ecx, esi
call fcn.00637a00
mov ecx, dword [esp + 0x10]
add eax, ebx
mov dword [esp + 0x18], eax
cmp ecx, 2
jbe 0x667025
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 3
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x7c], ecx
mov ecx, 0xffffffff
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x84], eax
movzx eax, byte [edx + 0x1b]
mov dword [esp + 0x88], 2
sub al, byte [edx + 0x1a]
movzx eax, al
add eax, dword [edx + 8]
cmovb eax, ecx
add eax, dword [edx + 0x20]
cmovb eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x98]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x64]
mov dword [esp + 0x28], 0x8a682c
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x34], 0x8a9914
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x3c], eax
lea eax, [ecx + 0x1c]
mov dword [esp + 0x40], 0x8a9914
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x44]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb0], 1
mov eax, dword [0x94bfb8]
mov ecx, dword [esp + 4]
cmp eax, 2
jne 0x666ffd
cmp dword [0x94bcc0], 0
mov edi, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov esi, dword [0x94bcc8]
je 0x666fda
mov eax, dword [esi + 8]
dec eax
and eax, 0xfffffff8
lea edi, [eax + edi + 8]
lea ebx, [esp + 0xb0]
push ebx
push edi
call dword [esi + 0x28]
add esp, 8
mov ecx, dword [esp + 4]
test al, al
je 0x666ffd
push ebx
push edi
call dword [esi + 0x2c]
mov ecx, dword [esp + 0xc]
add esp, 8
mov esi, dword [esp + 0xc]
jmp 0x666890
mov ecx, esi
mov edx, ebx
push 0x926fc8
call fcn.007c1e60
mov ecx, ebx
mov edx, 0xa
push 0x926fc8
call fcn.007c1c40
mov ecx, 0x8a6758
mov edx, 0x22
push 0x8ace5c
call fcn.007c2000
mov ecx, 0x8a6758
mov edx, 0x22
push 0x8ace34
call fcn.007c2000
push 0x933804
call fcn.007c1c40
int3