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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x2e0
cmp dword [edx], 1
mov ebx, ecx
jne 0x1008c471
mov esi, dword [edx + 4]
mov dword [esp + 4], esi
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [ebx], 2
cmp ecx, 2
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jne 0x1008c519
cmp byte [ebx + 0x10], 0
jne 0x1008c6f4
mov eax, dword [0x10551ebc]
cmp eax, 5
jb 0x1008c3a6
mov eax, dword [0x10551ec0]
mov ecx, dword [ebx + 0xc]
mov eax, 3
xchg dword [ecx + 8], eax
cmp eax, 2
mov dword [esp + 0xe0], eax
jb 0x1008c701
je 0x1008c430
cmp eax, 3
je 0x1008c701
lea ecx, [esp + 0x38]
lea eax, [esp + 0xe0]
mov dword [esp + 0x188], 0x103c9940
mov dword [esp + 0x18c], 1
mov dword [esp + 0x190], 0
mov edx, 0x103c9948
mov dword [esp + 0x198], ecx
lea ecx, [esp + 0x188]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], fcn.10008600
mov dword [esp + 0x19c], 1
call fcn.100f94f0
ud2
mov eax, dword [ebx + 0xc]
mov cl, 1
xchg byte [eax + 0x14], cl
test cl, cl
jne 0x1008c430
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
xor ecx, ecx
mov dword [eax + 0x10], 0
test edx, edx
je 0x1008c6fe
xchg byte [eax + 0x14], cl
mov eax, dword [0x10551ebc]
cmp eax, 5
jb 0x1008c465
mov eax, dword [0x10551ec0]
push esi
call dword [edx + 4]
add esp, 4
jmp 0x1008c701
lea eax, [esp + 0xe0]
lea esi, [edx + 8]
mov ecx, 0x12
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsd xmm2, qword [edx + 0x68]
movsd xmm1, qword [edx + 0x60]
movsd xmm0, qword [edx + 0x70]
movsd qword [esp + 0x250], xmm2
movsd qword [esp + 0x248], xmm1
movsd xmm2, qword [edx + 0x50]
movsd xmm1, qword [edx + 0x58]
movsd qword [esp + 0x258], xmm0
movsd qword [esp + 0x240], xmm1
movsd qword [esp + 0x238], xmm2
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [ebx], 2
cmp ecx, 2
jne 0x1008c558
mov edi, eax
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1008cace
lea ecx, [esp + 0x238]
mov dword [eax], 0
mov esi, eax
mov byte [eax + 8], 3
call fcn.1005f350
push edi
call fcn.1004fdd0
add esp, 4
jmp 0x1008c6f4
lea eax, [esp + 0x188]
mov dword [esp + 0x190], esi
mov dword [esp + 0x19c], 0
mov dword [esp + 0x198], 3
mov dword [esp + 0x18c], 0
mov dword [esp + 0x188], 1
jmp 0x1008c6e9
movsd xmm1, qword [esp + 0x240]
mov byte [esp + 0x7e], 2
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x50], 2
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 4
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 4
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov word [esp + 0x70], 0
mov dword [esp + 0x78], 0
movsd xmm0, qword [esp + 0x238]
movsd xmm2, qword [esp + 0x250]
movzx eax, word [esp + 0x120]
lea esi, [esp + 0x38]
movsd qword [esp + 0x88], xmm1
movsd xmm1, qword [esp + 0x248]
movsd qword [esp + 0x80], xmm0
movsd qword [esp + 0x98], xmm2
movsd qword [esp + 0x90], xmm1
movsd xmm1, qword [esp + 0x258]
movsd qword [esp + 0xa0], xmm1
mov word [esp + 0x7c], ax
push esi
mov ebx, ecx
mov dword [esp + 4], edx
call fcn.1004fdd0
add esp, 4
movsd xmm1, qword [esp + 0x110]
movsd xmm2, qword [esp + 0x108]
movsd xmm0, qword [esp + 0x118]
mov al, byte [esp + 0x122]
lea edi, [esp + 0x190]
mov ecx, 0x1c
movsd qword [esp + 0x68], xmm1
movsd xmm1, qword [esp + 0x100]
movsd qword [esp + 0x60], xmm2
movsd xmm2, qword [esp + 0xf8]
movsd qword [esp + 0x70], xmm0
movsd qword [esp + 0x58], xmm1
movsd xmm1, qword [esp + 0xf0]
movsd qword [esp + 0x50], xmm2
movsd xmm2, qword [esp + 0xe0]
movsd qword [esp + 0x48], xmm1
movsd xmm1, qword [esp + 0xe8]
movsd qword [esp + 0x38], xmm2
movsd qword [esp + 0x40], xmm1
mov byte [esp + 0x7e], al
lea eax, [esp + 0x188]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18c], 0
mov dword [esp + 0x188], 0
mov ecx, ebx
mov edx, dword [esp]
push eax
call fcn.10064200
add esp, 4
xor esi, esi
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xchg byte [eax + 0x14], cl
mov eax, dword [ebx + 8]
cmp byte [eax + 0x30], 0
jne 0x1008c711
mov byte [eax + 0x30], 1
mov eax, dword [ebx + 8]
lock or dword [eax + 0x10], 1
lea edi, [esp + 0x38]
mov edx, dword [ebx + 8]
mov ecx, edi
lea eax, [edx + 8]
add edx, 0x24
push eax
call fcn.10063d70
add esp, 4
mov al, byte [esp + 0x38]
shl al, 5
sar al, 5
cmp al, 0xfd
jg 0x1008c757
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe0], 3
jmp 0x1008c865
mov eax, dword [ebx + 8]
mov ecx, 0xfffffffe
lock xadd dword [eax + 0x10], ecx
cmp ecx, 1
jbe 0x1008cadf
lea esi, [esp + 0x18e]
push 0xa8
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0xa8
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movaps xmm1, xmmword [0x10364f90]
movups xmm0, xmmword [esp + 0x38]
movups xmmword [esp + 0x38], xmm1
movups xmm1, xmmword [esp + 0x48]
movups xmmword [esp + 0xe0], xmm0
movups xmm0, xmmword [esp + 0x68]
movups xmm2, xmmword [esp + 0x88]
mov ecx, dword [esp + 0xdc]
mov eax, dword [esp + 0xd8]
movups xmmword [esp + 0xf0], xmm1
movups xmm1, xmmword [esp + 0x58]
movups xmmword [esp + 0x110], xmm0
movups xmmword [esp + 0x100], xmm1
movups xmm1, xmmword [esp + 0x78]
movups xmmword [esp + 0x130], xmm2
movups xmm2, xmmword [esp + 0xa8]
movups xmmword [esp + 0x120], xmm1
movups xmm1, xmmword [esp + 0x98]
movups xmmword [esp + 0x150], xmm2
movups xmm2, xmmword [esp + 0xc8]
movups xmmword [esp + 0x140], xmm1
movups xmm1, xmmword [esp + 0xb8]
movups xmmword [esp + 0x170], xmm2
movups xmmword [esp + 0x160], xmm1
mov dword [esp + 0x184], ecx
mov ecx, edi
mov dword [esp + 0x180], eax
call fcn.10063f40
mov eax, dword [esp + 0xe0]
xor eax, 3
or eax, dword [esp + 0xe4]
jne 0x1008c879
mov esi, dword [esp + 4]
cmp dword [esp + 0x10], 2
je 0x1008c6f4
jmp 0x1008caa9
lea eax, [esp + 0xe0]
lea ecx, [esp + 0x238]
push 0xa0
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x180]
mov dword [esp], eax
mov eax, dword [esp + 0x184]
mov dword [esp + 0xc], eax
mov eax, dword [0x10551ebc]
cmp eax, 5
jb 0x1008c8ba
mov eax, dword [0x10551ec0]
mov eax, dword [0x10411958]
dec eax
cmp eax, 5
jb 0x1008c9b0
mov ecx, dword [0x104115c0]
test ecx, ecx
je 0x1008c9b0
mov al, 1
cmp ecx, 1
je 0x1008c8e9
cmp ecx, 2
jne 0x1008cab7
mov al, 2
movzx edx, al
mov ecx, 0x104115c0
call fcn.10109ff0
test al, al
je 0x1008c9b0
mov ecx, dword [0x104115c4]
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x1008caef
mov edx, dword [ecx + 0x2c]
mov esi, dword [ecx + 0x34]
mov ebx, edi
mov edi, dword [ecx + 0x38]
mov dword [esp + 0x38], 0
mov dword [esp + str.canceling_queued_request_with_connection_error:_error_shutting_down_IO:_shut_down_IO_complete], 0x10399f20
mov dword [esp + 0x18c], 1
mov dword [esp + 0x190], 0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], edx
lea edx, [esp + 4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], esi
lea esi, [esp + 0x18]
mov dword [esp + 0x48], edi
mov dword [esp + 0x18], edx
lea edx, [esp + 0x188]
mov dword [esp + 0x198], esi
lea esi, [esp + 0x2c]
mov dword [esp + 0x1c], 0x1003f060
mov dword [esp + 0x19c], 1
mov dword [esp + 0x30], edx
lea edx, [ecx + 0x2c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 1
mov dword [esp + 0x34], 0x103986f0
mov dword [esp + 0x28], edx
lea edx, [esp + 0x20]
call fcn.1010a850
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1008cace
mov dword [eax], 0
mov byte [eax + 8], 4
mov edi, eax
mov esi, dword [esp + 4]
call sub.KERNEL32.dll_GetProcessHeap
push 4
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1008cae8
mov dword [eax], esi
mov dword [esp + 8], eax
mov esi, dword [edi]
test esi, esi
je 0x1008ca27
mov ebx, dword [edi + 4]
push esi
call dword [ebx]
add esp, 4
cmp dword [ebx + 4], 0
je 0x1008ca27
cmp dword [ebx + 8], 9
jae 0x1008ca17
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x1008ca1f
call sub.KERNEL32.dll_GetProcessHeap
push dword [esi - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov eax, dword [esp + 8]
mov dword [edi], eax
mov dword [edi + 4], 0x10397eac
lea eax, [esp + 0x3c]
push 0xa0
lea ecx, [esp + 0x23c]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esp + 0x190], edi
lea eax, [esp + 0x194]
push 0xa4
lea ecx, [esp + 0x3c]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [esp]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x188]
mov dword [esp + 0x18c], 0
mov dword [esp + 0x188], 1
push eax
call fcn.10064200
add esp, 4
xor esi, esi
cmp dword [esp + 0x10], 2
je 0x1008c6f4
lea ecx, [esp + 0x10]
call fcn.100648f0
jmp 0x1008c6f4
mov ecx, 0x104115c0
call fcn.10109f40
test al, al
jne 0x1008c8e9
jmp 0x1008c9b0
mov ecx, 0xc
mov edx, 4
call fcn.100067d0
ud2
mov ecx, 7
int 0x29
ud2
mov ecx, 4
jmp 0x1008cad3
mov ecx, 0x103986bd
mov edx, 0x22
push 0x10399f94
call fcn.1000a9c0
add esp, 4
ud2