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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov dword [esp + 0x6c], edx
mov esi, ecx
mov eax, dword [0x94bccc]
mov dword [esp + 0x50], ecx
test eax, eax
je 0x486943
mov dword [esp + 0x38], 2
mov dword [esp + 0x48], 0
mov ecx, dword [esi + 0x4c]
mov eax, dword [esp + 0x6c]
add eax, ecx
jo 0x486666
mov ecx, eax
mov dword [esi + 0x4c], eax
test ecx, ecx
jle 0x4868bb
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov dword [esp + 0x68], ebx
jmp 0x48668c
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jle 0x4868bb
cmp dword [esi + 0x14], 0
je 0x4868bb
mov edx, dword [esi + 0x18]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x1c]
cmp edx, dword [esi + 0x20]
jne 0x486710
cmp ecx, dword [esi + 0x24]
jne 0x486710
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov eax, dword [ebx + 0x38]
cmp eax, edx
jbe 0x486b36
mov edi, dword [ebx + 0x34]
test edi, edi
je 0x486b36
imul esi, edx, 0xf0
mov ebx, dword [edi + esi]
xor ebx, 3
or ebx, dword [edi + esi + 4]
mov ebx, dword [esp + 0x68]
je 0x486b36
add esi, edi
cmp dword [esi + 0xcc], ecx
jne 0x486b36
cmp dword [esi + 0x70], 0
jne 0x486bf0
mov esi, dword [esp + 0x50]
mov dword [esi + 0x14], 0
jmp 0x48677b
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
cmp dword [ebx + 0x38], edx
jbe 0x486b64
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x486b64
imul esi, edx, 0xf0
mov edi, dword [eax + esi]
xor edi, 3
or edi, dword [eax + esi + 4]
je 0x486b64
add eax, esi
cmp dword [eax + 0xcc], ecx
jne 0x486b64
movsd xmm0, qword [eax + 0x74]
cmp dword [eax + 0x70], 0
mov dword [eax + 0x70], 0
je 0x486c04
mov eax, dword [esp + 0x50]
mov dword [eax + 0x14], 1
movlps qword [eax + 0x18], xmm0
mov edi, dword [ebx + 0x34]
mov eax, dword [ebx + 0x38]
cmp eax, edx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
jbe 0x486b64
test edi, edi
je 0x486b64
imul eax, edx, 0xf0
mov esi, dword [edi + eax]
xor esi, 3
or esi, dword [edi + eax + 4]
je 0x486b64
add edi, eax
cmp dword [edi + 0xcc], ecx
jne 0x486b64
mov byte [edi + 0xe2], 0
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
cmp dword [ebx + 0x38], edx
jbe 0x486b36
mov edi, dword [ebx + 0x34]
test edi, edi
je 0x486b36
mov esi, dword [edi + eax]
xor esi, 3
or esi, dword [edi + eax + 4]
je 0x486b36
add edi, eax
cmp dword [edi + 0xcc], ecx
jne 0x486b36
movzx ebx, byte [edi + 0x20]
mov esi, 6
add bl, 0xfa
movzx eax, bl
cmp bl, 6
mov ebx, dword [esp + 0x68]
cmovae eax, esi
mov esi, dword [esp + 0x50]
cmp al, 5
je 0x486821
movzx eax, al
cmp eax, 3
jne 0x486827
cmp byte [edi + 0x21], 0
jne 0x486856
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov eax, dword [edi]
xor eax, 3
or eax, dword [edi + 4]
je 0x486b36
cmp dword [edi + 0xcc], ecx
jne 0x486b36
cmp dword [edi + 0xd8], 0
je 0x486680
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x74], ecx
mov eax, dword [edi]
xor eax, 3
or eax, dword [edi + 4]
je 0x486baa
cmp dword [edi + 0xcc], ecx
jne 0x486baa
xor ebx, ebx
cmp dword [edi + 0x18], 0x3b9aca00
lea edi, [esp + 0x54]
mov ecx, esi
mov edx, edi
setne bl
call fcn.00486c30
mov ecx, dword [ebp + 0xc]
mov edx, edi
push ebx
call fcn.00482f50
add esp, 4
mov eax, dword [esi + 0x4c]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x2c], eax
jmp 0x486680
mov eax, dword [esp + 0x38]
cmp eax, 2
je 0x48693b
test eax, eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
je 0x4868db
mov edx, dword [eax + 8]
dec edx
and edx, 0xfffffff8
lea ecx, [edx + ecx + 8]
lea edx, [esp + 0x30]
push edx
push ecx
call dword [eax + 0x34]
add esp, 8
mov edx, dword [esp + 0x38]
cmp edx, 2
je 0x48693b
test edx, edx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
je 0x48690f
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 + 0x38]
cmp eax, 2
je 0x48693b
test eax, eax
je 0x48693b
mov eax, dword [esp + 0x3c]
lock dec dword [eax]
jne 0x48693b
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
call fcn.0075aba0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [0x94ab70]
test al, al
je 0x486646
movzx eax, al
cmp eax, 1
je 0x486979
cmp eax, 2
je 0x4869c1
mov ecx, 0x94ab68
call fcn.007d3740
test al, al
je 0x486646
movzx eax, al
cmp eax, 2
je 0x4869c1
mov eax, dword [0x94ab68]
mov ecx, dword [0x94bfb8]
cmp ecx, 2
jne 0x486646
cmp dword [0x94bcc0], 0
mov edx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov ecx, dword [0x94bcc8]
je 0x4869b1
mov esi, dword [ecx + 8]
dec esi
and esi, 0xfffffff8
lea edx, [esi + edx + 8]
mov esi, dword [esp + 0x50]
push eax
push edx
call dword [ecx + 0x14]
add esp, 8
test al, al
je 0x486646
mov edi, dword [0x94ab68]
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x486c0e
mov edx, dword [edi + 0x1c]
movsd xmm0, qword [edi + 0x24]
lea eax, [edi + 0x1c]
lea ebx, [esp + 0x6c]
mov dword [esp + 0x54], edx
lea edx, [esp + 0x54]
mov dword [esp + 0x58], ecx
movlps qword [esp + 0x5c], xmm0
mov dword [esp + 0x64], 0
mov dword [esp + 4], edx
lea edx, [esp + 4]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0x826e60
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], eax
mov eax, dword [0x94bfb8]
cmp eax, 2
jne 0x486ab2
mov edx, dword [0x94bcc8]
cmp dword [0x94bcc0], 0
mov ebx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
lea eax, [esp + 0x70]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0x2c], edx
je 0x486ae6
mov eax, dword [edx + 8]
lea ecx, [esp + 0x10]
dec eax
and eax, 0xfffffff8
lea eax, [eax + ebx + 8]
push ecx
push eax
call dword [edx + 0x1c]
add esp, 8
lock inc dword [ebx]
jle 0x486c22
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], edi
mov eax, dword [ecx + 8]
dec eax
and eax, 0xfffffff8
lea ebx, [eax + ebx + 8]
jmp 0x486b16
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0xdead
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set
mov dword [esp + 0x40], 0x93b6a0
mov ebx, str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set
mov ecx, 0x93b6a0
jmp 0x486b12
lea eax, [esp + 0x10]
push eax
push ebx
mov eax, dword [esp + 0x34]
call dword [eax + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], edi
lea eax, [esp + 0x30]
push eax
push ebx
call dword [ecx + 0x30]
add esp, 8
mov ecx, dword [esi + 0x4c]
mov eax, dword [esp + 0x6c]
add eax, ecx
jno 0x486661
jmp 0x486666
lea eax, [esp + 8]
mov dword [esp + 0x10], 0x828150
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x54], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x58], 0x47c5e0
jmp 0x486bd6
lea ecx, [esp + 0x54]
lea eax, [esp + 8]
mov dword [esp + 0x10], 0x828150
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], 0
mov edx, 0x828168
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x47c5e0
mov dword [esp + 0x1c], 1
call fcn.007c1b50
lea eax, [esp + 0x74]
mov dword [esp + 0x10], 0x828150
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], 0
mov dword [esp + 4], eax
mov dword [esp + 8], 0x47c5e0
lea eax, [esp + 4]
lea ecx, [esp + 0x10]
mov edx, 0x828158
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 1
call fcn.007c1b50
mov ecx, str.assertion_failed:_N::next_stream_.is_none__
mov edx, 0x2c
push 0x8aac1c
call fcn.007c1ca0
mov ecx, 0x8aabe0
call fcn.007c1fe0
mov ecx, 0x8a6758
mov edx, 0x22
push 0x8aa424
call fcn.007c2000
ud2