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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov byte [edx + 0x99], 0
mov dword [esp], ecx
mov edi, edx
mov ecx, dword [edx + 0x90]
mov eax, dword [edx + 0x8c]
mov edx, dword [edx + 0x7c]
lea ebx, [edi + 0x88]
mov esi, ecx
sub esi, eax
cmp esi, edx
jae 0x66b34b
mov ecx, ebx
call fcn.0042f3d0
mov eax, dword [edi + 0x8c]
mov ecx, dword [edi + 0x90]
mov esi, dword [ebp + 8]
cmp ecx, eax
jne 0x66b36a
mov ecx, ebx
mov edx, 0x40
call fcn.0042f3d0
mov eax, dword [edi + 0x8c]
mov ecx, dword [edi + 0x90]
sub ecx, eax
add eax, dword [edi + 0x88]
mov edx, edi
mov dword [esp + 8], eax
lea eax, [esp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x18]
push eax
push esi
call fcn.00726280
add esp, 8
movzx eax, byte [esp + 0x18]
cmp eax, 4
je 0x66b3c3
cmp eax, 5
jne 0x66b43f
mov eax, dword [esp]
mov byte [edi + 0x99], 1
mov byte [eax], 5
jmp 0x66b47d
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
cmp ebx, edx
ja 0x66b60a
mov dword [esp + 4], ebx
mov eax, dword [0x94bccc]
test eax, eax
je 0x66b485
mov eax, dword [edi + 0x8c]
mov edx, dword [edi + 0x90]
sub edx, eax
cmp ebx, edx
ja 0x66b616
add eax, ebx
mov dword [edi + 0x8c], eax
mov eax, dword [edi + 0x7c]
cmp eax, ebx
jbe 0x66b44e
bsr ecx, eax
mov eax, 0xffffffff
not ecx
add cl, 2
shr eax, cl
inc eax
cmp eax, ebx
jbe 0x66b469
cmp byte [edi + 0x84], 0
mov edx, dword [esp]
je 0x66b5fe
cmp eax, 0x2001
mov ecx, 0x2000
cmovae ecx, eax
mov dword [edi + 0x7c], ecx
jmp 0x66b46c
movsd xmm0, qword [esp + 0x18]
mov eax, dword [esp]
movsd qword [eax], xmm0
jmp 0x66b47d
mov ecx, dword [edi + 0x80]
lea edx, [eax + eax]
test eax, eax
mov eax, 0xffffffff
cmovns eax, edx
cmp eax, ecx
cmovae eax, ecx
mov dword [edi + 0x7c], eax
mov edx, dword [esp]
mov byte [edi + 0x84], 0
mov eax, dword [esp + 4]
mov byte [edx], 4
mov dword [edx + 4], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [0x94ae40]
test al, al
je 0x66b3e4
movzx eax, al
cmp eax, 1
je 0x66b4bb
cmp eax, 2
je 0x66b4ff
mov ecx, 0x94ae38
call fcn.007d3740
test al, al
je 0x66b3e4
movzx eax, al
cmp eax, 2
je 0x66b4ff
mov eax, dword [0x94ae38]
mov ecx, dword [0x94bfb8]
cmp ecx, 2
jne 0x66b3e4
cmp dword [0x94bcc0], 0
mov edx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov ecx, dword [0x94bcc8]
je 0x66b4ef
mov esi, dword [ecx + 8]
dec esi
and esi, 0xfffffff8
lea edx, [esi + edx + 8]
push eax
push edx
call dword [ecx + 0x14]
add esp, 8
test al, al
je 0x66b3e4
mov eax, dword [0x94ae38]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x66b61d
mov esi, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
mov dword [esp + 0x6c], 0x8acf74
mov dword [esp + 0x70], 2
mov dword [esp + 0x7c], 0
lea ecx, [eax + 0x1c]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edx
lea edx, [esp + 4]
movlps qword [esp + 0x60], xmm0
mov dword [esp + 0x68], 0
mov dword [esp + 0x20], edx
lea edx, [esp + 0x20]
mov dword [esp + 0x24], 0x4631b0
mov dword [esp + 0x74], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x78], 1
mov dword [esp + 0x28], edx
lea edx, [esp + 0x6c]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x28]
mov dword [esp + 0x30], 0x8a682c
mov dword [esp + 0x34], edx
lea edx, [esp + 0x34]
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 1
mov eax, dword [0x94bfb8]
cmp eax, 2
jne 0x66b5f5
cmp dword [0x94bcc0], 0
mov ebx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov esi, dword [0x94bcc8]
je 0x66b5d9
mov eax, dword [esi + 8]
dec eax
and eax, 0xfffffff8
lea ebx, [eax + ebx + 8]
lea eax, [esp + 0x40]
push eax
push ebx
call dword [esi + 0x28]
add esp, 8
test al, al
je 0x66b5f5
lea eax, [esp + 0x40]
push eax
push ebx
call dword [esi + 0x2c]
add esp, 8
mov ebx, dword [esp + 4]
jmp 0x66b3e4
mov byte [edi + 0x84], 1
jmp 0x66b473
mov ecx, ebx
push 0x8a6e9c
call fcn.007c1c40
mov ecx, ebx
call fcn.007c1920
mov ecx, 0x8a6758
mov edx, 0x22
push 0x8acf58
call fcn.007c2000
int3