Function at 0x6479f0
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 dword [esp + 0x54], ecx
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov eax, dword [0x94bccc]
test eax, eax
je 0x647b13
mov dword [esp + 8], 2
mov dword [esp + 0x18], 0
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
mov ecx, dword [edi]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
cmp dword [ecx + 0x38], edx
jbe 0x647d57
mov ecx, dword [ecx + 0x34]
test ecx, ecx
je 0x647d57
imul edx, edx, 0xf0
mov esi, dword [ecx + edx]
xor esi, 3
or esi, dword [ecx + edx + 4]
je 0x647d57
add ecx, edx
cmp dword [ecx + 0xcc], eax
jne 0x647d57
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
add ecx, 0x64
push ebx
call fcn.00647ec0
add esp, 4
mov ecx, dword [esp + 0x54]
mov edx, edi
push esi
call fcn.00484ca0
add esp, 4
mov eax, dword [esp + 8]
cmp eax, 2
je 0x647b0b
test eax, eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
je 0x647aae
mov edx, dword [eax + 8]
dec edx
and edx, 0xfffffff8
lea ecx, [edx + ecx + 8]
mov edx, esp
push edx
push ecx
call dword [eax + 0x34]
add esp, 8
mov edx, dword [esp + 8]
cmp edx, 2
je 0x647b0b
test edx, edx
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
je 0x647adf
mov edi, dword [edx + 8]
dec edi
and edi, 0xfffffff8
lea esi, [edi + esi + 8]
push ecx
push eax
push esi
call dword [edx + 0x40]
add esp, 0xc
mov eax, dword [esp + 8]
cmp eax, 2
je 0x647b0b
test eax, eax
je 0x647b0b
mov eax, dword [esp + 0xc]
lock dec dword [eax]
jne 0x647b0b
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
call fcn.0075aba0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [0x94ab28]
test al, al
je 0x647a15
movzx eax, al
cmp eax, 1
je 0x647b49
cmp eax, 2
je 0x647b8d
mov ecx, 0x94ab20
call fcn.007d3740
test al, al
je 0x647a15
movzx eax, al
cmp eax, 2
je 0x647b8d
mov eax, dword [0x94ab20]
mov ecx, dword [0x94bfb8]
cmp ecx, 2
jne 0x647a15
cmp dword [0x94bcc0], 0
mov edx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov ecx, dword [0x94bcc8]
je 0x647b7d
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 0x647a15
mov edx, dword [0x94ab20]
mov eax, dword [edx + 0x20]
test eax, eax
je 0x647de0
mov ecx, dword [edx + 0x1c]
movsd xmm0, qword [edx + 0x24]
mov dword [esp + 0x50], edx
mov edx, dword [edi + 4]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi]
movlps qword [esp + 0x64], xmm0
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], eax
cmp dword [ecx + 0x38], edx
jbe 0x647d9d
mov ecx, dword [ecx + 0x34]
test ecx, ecx
je 0x647d9d
imul edx, edx, 0xf0
mov esi, dword [ecx + edx]
xor esi, 3
or esi, dword [ecx + edx + 4]
je 0x647d9d
add ecx, edx
cmp dword [ecx + 0xcc], eax
jne 0x647d9d
mov esi, dword [esp + 0x50]
add ecx, 0xcc
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x4c], 0x8aa054
lea eax, [esi + 0x1c]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], 1
mov dword [esp + 0x80], eax
mov eax, dword [0x94bfb8]
cmp eax, 2
jne 0x647ce2
mov ecx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov edx, dword [0x94bcc8]
cmp dword [0x94bcc0], 0
lea eax, [esp + 0x78]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
je 0x647d15
mov eax, dword [edx + 8]
dec eax
and eax, 0xfffffff8
lea eax, [eax + ecx + 8]
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x2c]
add esp, 8
lock inc dword [ecx]
jle 0x647df4
mov dword [esp + 4], edx
mov edx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov eax, dword [edx + 8]
dec eax
and eax, 0xfffffff8
lea ecx, [eax + ecx + 8]
jmp 0x647d48
mov dword [esp + 4], 0
mov dword [esp], 0xdead
mov dword [esp + 8], 0
mov dword [esp + 0xc], str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set
mov dword [esp + 0x10], 0x93b6a0
mov ecx, str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set
mov edx, 0x93b6a0
jmp 0x647d44
lea eax, [esp + 0x28]
push eax
push ecx
mov eax, dword [esp + 0x28]
call dword [eax + 0x1c]
mov ecx, dword [esp + 0x2c]
add esp, 8
mov dword [esp + 4], edx
mov edx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov eax, esp
push eax
push ecx
call dword [edx + 0x30]
add esp, 8
jmp 0x647a25
lea ecx, [esp + 0x5c]
lea eax, [esp + 0x48]
mov dword [esp + 0x28], 0x828150
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov edx, 0x828168
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x47c5e0
mov dword [esp + 0x34], 1
call fcn.007c1b50
lea ecx, [esp + 0x28]
lea eax, [esp + 0x74]
mov dword [esp], 0x828150
mov dword [esp + 4], 1
mov dword [esp + 0x10], 0
mov edx, 0x828158
mov dword [esp + 8], ecx
mov ecx, esp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0x47c5e0
mov dword [esp + 0xc], 1
call fcn.007c1b50
mov ecx, 0x8a6758
mov edx, 0x22
push 0x8aa300
call fcn.007c2000
ud2