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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x108
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x94bccc]
test eax, eax
je 0x66429c
mov dword [esp + 8], 2
mov dword [esp + 0x18], 0
mov esi, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx]
lea eax, [esp + 0x3c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edx
cmp dword [ecx + 0x38], esi
jbe 0x664975
mov ecx, dword [ecx + 0x34]
test ecx, ecx
je 0x664975
imul edi, esi, 0xf0
mov ebx, dword [ecx + edi]
xor ebx, 3
or ebx, dword [ecx + edi + 4]
je 0x664975
add ecx, edi
cmp dword [ecx + 0xcc], edx
jne 0x664975
movzx ebx, byte [ecx + 0x20]
add bl, 0xfa
movzx edi, bl
cmp bl, 6
mov ebx, 6
cmovb ebx, edi
cmp bl, 6
ja 0x66424f
movzx edi, bl
mov ebx, 0x54
bt ebx, edi
jae 0x66424f
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edx
mov edi, dword [ecx]
xor edi, 3
or edi, dword [ecx + 4]
je 0x664975
cmp dword [ecx + 0xcc], edx
jne 0x664975
cmp dword [ecx + 0xd8], 0
je 0x664621
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edx
mov esi, dword [ecx]
xor esi, 3
or esi, dword [ecx + 4]
je 0x664998
cmp dword [ecx + 0xcc], edx
jne 0x664998
mov edx, dword [esp + 0xa8]
add ecx, 0x38
call fcn.004848c0
mov bl, 1
test eax, eax
je 0x664869
mov eax, dword [esp + 8]
cmp eax, 2
jne 0x66462c
jmp 0x6646a0
movzx eax, byte [0x94a284]
test al, al
je 0x66419d
movzx eax, al
cmp eax, 1
je 0x6642d2
cmp eax, 2
je 0x664316
mov ecx, 0x94a27c
call fcn.007d3740
test al, al
je 0x66419d
movzx eax, al
cmp eax, 2
je 0x664316
mov eax, dword [0x94a27c]
mov ecx, dword [0x94bfb8]
cmp ecx, 2
jne 0x66419d
cmp dword [0x94bcc0], 0
mov edx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov ecx, dword [0x94bcc8]
je 0x664306
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 0x66419d
mov ecx, dword [0x94a27c]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x664a08
mov edx, dword [ecx + 0x24]
mov esi, dword [ecx + 0x1c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ecx + 0x28]
mov edi, dword [ebx + 4]
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0x9c], ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0xa0], edx
mov edx, dword [ebx]
mov dword [esp + 0x54], edi
mov dword [esp + 0xd0], 0
mov dword [esp + 0x50], edi
mov dword [esp + 0x58], ecx
cmp dword [edx + 0x38], edi
jbe 0x6649da
mov edx, dword [edx + 0x34]
test edx, edx
je 0x6649da
imul edi, dword [esp + 0x50], 0xf0
mov ebx, dword [edx + edi]
xor ebx, 3
or ebx, dword [edx + edi + 4]
je 0x6649da
add edx, edi
cmp dword [edx + 0xcc], ecx
jne 0x6649da
lea edi, [edx + 0xcc]
cmp eax, 1
mov dword [esp + 0x98], edi
mov dword [esp + 0xb4], edi
jbe 0x664a08
mov edi, dword [esp + 0xa0]
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd8], eax
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0xb0], esi
mov dword [esp + 0xdc], edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], 1
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ecx
mov ebx, dword [edx]
xor ebx, 3
or ebx, dword [edx + 4]
je 0x6649da
mov esi, dword [esp + 0x98]
cmp dword [esi], ecx
jne 0x6649da
lea ebx, [edx + 0x20]
cmp eax, 2
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb8], ebx
jbe 0x664a08
mov ecx, dword [esp + 0xb0]
mov edi, dword [esp + 0xa0]
mov esi, dword [esp + 0x9c]
mov ebx, dword [ebp + 0xc]
cmp eax, 3
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], 2
je 0x664a08
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 3
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], ecx
mov eax, dword [edx]
xor eax, 3
or eax, dword [edx + 4]
je 0x664a1c
mov eax, dword [esp + 0x98]
cmp dword [eax], ecx
jne 0x664a1c
mov esi, dword [esp + 0x4c]
add edx, 0x38
lea ecx, [esp + 0xc0]
lea edi, [esp + 0xb4]
mov dword [esp + 0xbc], edx
lea edx, [esp + 0xd4]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], 0x826e40
lea edi, [esp + 0xb8]
mov dword [esp + 0x74], edx
lea edx, [esp + 0x54]
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], 0x826e80
lea edi, [esp + 0xa8]
mov dword [esp + 0x80], edx
lea edx, [esp + 0x38]
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], 0x826e60
lea edi, [esp + 0xbc]
mov dword [esp + 0x8c], edx
lea edx, [esp + 0x68]
lea eax, [esi + 0x1c]
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], 0x826e90
mov dword [esp + 0xf8], edx
mov dword [esp + 0xfc], 4
mov dword [esp + 0x100], eax
mov eax, dword [0x94bfb8]
cmp eax, 2
jne 0x664902
mov dword [esp + 0x30], esi
cmp dword [0x94bcc0], 0
mov esi, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov edi, dword [0x94bcc8]
lea eax, [esp + 0xf8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 1
je 0x66493b
mov eax, dword [edi + 8]
lea ecx, [esp + 0x20]
dec eax
and eax, 0xfffffff8
lea eax, [eax + esi + 8]
push ecx
push eax
call dword [edi + 0x1c]
add esp, 8
lock inc dword [esi]
jle 0x664a82
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], eax
mov eax, dword [edi + 8]
dec eax
and eax, 0xfffffff8
lea esi, [eax + esi + 8]
jmp 0x664966
xor ebx, ebx
mov eax, dword [esp + 8]
cmp eax, 2
je 0x6646a0
test eax, eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
je 0x664643
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 0x6646a0
test edx, edx
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
je 0x664674
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 0x6646a0
test eax, eax
je 0x6646a0
mov eax, dword [esp + 0xc]
lock dec dword [eax]
jne 0x6646a0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
call fcn.0075aba0
test bl, bl
je 0x6648f8
mov dword [esp + 0xc0], 3
mov eax, dword [0x94bccc]
cmp eax, 1
ja 0x664836
movzx eax, byte [0x94ac90]
test al, al
je 0x664836
movzx eax, al
cmp eax, 1
je 0x6646f7
cmp eax, 2
je 0x66473b
mov ecx, 0x94ac88
call fcn.007d3740
test al, al
je 0x664836
movzx eax, al
cmp eax, 2
je 0x66473b
mov eax, dword [0x94ac88]
mov ecx, dword [0x94bfb8]
cmp ecx, 2
jne 0x664836
cmp dword [0x94bcc0], 0
mov edx, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov ecx, dword [0x94bcc8]
je 0x66472b
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 0x664836
mov eax, dword [0x94ac88]
mov edx, dword [eax + 0x20]
test edx, edx
je 0x664a6e
mov esi, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
mov dword [esp], str.recv_stream_window_update_____err
mov dword [esp + 4], 1
mov dword [esp + 0x10], 0
lea ecx, [eax + 0x1c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edx
lea edx, [esp + 0xc0]
movlps qword [esp + 0x28], xmm0
mov dword [esp + 0x30], 0
mov dword [esp + 0xd4], edx
lea edx, [esp + 0xd4]
mov dword [esp + 0xd8], fcn.004845c0
mov dword [esp + 8], edx
lea edx, [esp + 0x20]
mov dword [esp + 0xc], 1
mov dword [esp + 0x54], edx
mov edx, esp
mov dword [esp + 0x58], edx
lea edx, [esp + 0x54]
mov dword [esp + 0x5c], 0x8a682c
mov dword [esp + 0x38], edx
lea edx, [esp + 0x38]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 1
mov eax, dword [0x94bfb8]
cmp eax, 2
jne 0x664836
cmp dword [0x94bcc0], 0
mov edi, dword [str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set]
mov esi, dword [0x94bcc8]
je 0x66481e
mov eax, dword [esi + 8]
dec eax
and eax, 0xfffffff8
lea edi, [eax + edi + 8]
lea ebx, [esp + 0x68]
push ebx
push edi
call dword [esi + 0x28]
add esp, 8
test al, al
je 0x664836
push ebx
push edi
call dword [esi + 0x2c]
add esp, 8
mov ecx, dword [esp + 0xa4]
mov edx, 3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 1
call fcn.00646f70
add esp, 0x14
mov edx, dword [esp + 0xc0]
mov eax, 1
jmp 0x6648fa
mov ecx, dword [esp + 0xa4]
mov edx, dword [ebp + 0xc]
add ecx, 8
call fcn.00486c30
mov eax, dword [esp + 8]
cmp eax, 2
je 0x6648f8
test eax, eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
je 0x66489b
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 0x6648f8
test edx, edx
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
je 0x6648cc
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 0x6648f8
test eax, eax
je 0x6648f8
mov eax, dword [esp + 0xc]
lock dec dword [eax]
jne 0x6648f8
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
call fcn.0075aba0
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, esi
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 esi, str.SetGlobalDefaultErrora_global_default_trace_dispatcher_has_already_been_set
mov edi, 0x93b6a0
mov dword [esp + 0x18], eax
jmp 0x664966
lea eax, [esp + 0x20]
push eax
push esi
call dword [edi + 0x1c]
add esp, 8
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
mov eax, esp
push eax
push esi
call dword [edi + 0x30]
add esp, 8
jmp 0x6641ad
lea ecx, [esp + 0x20]
mov dword [esp + 0x68], 0x828150
mov dword [esp + 0x6c], 1
mov dword [esp + 0x78], 0
mov edx, 0x828158
jmp 0x6649b9
lea ecx, [esp + 0x20]
mov dword [esp + 0x68], 0x828150
mov dword [esp + 0x6c], 1
mov dword [esp + 0x78], 0
mov edx, 0x828168
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x47c5e0
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x74], 1
call fcn.007c1b50
lea eax, [esp + 0x58]
mov dword [esp + 0x20], 0x828150
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], 0x47c5e0
jmp 0x664a54
mov ecx, 0x8a6758
mov edx, 0x22
push 0x826e70
call fcn.007c2000
lea eax, [esp + 0xec]
mov dword [esp + 0x20], 0x828150
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], 0x47c5e0
lea eax, [esp + 0xf0]
lea ecx, [esp + 0x20]
mov edx, 0x828158
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 1
call fcn.007c1b50
mov ecx, 0x8a6758
mov edx, 0x22
push 0x8aaa88
call fcn.007c2000
ud2