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

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x2c]
push edi
push ebp
call fcn.1006ad80
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], ebx
mov byte [eax], bl
push dword [ebp + 0x10]
push edi
call fcn.1006af90
add esp, 0x10
test al, al
je 0x1009c918
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x1009c8cb
nop dword [eax]
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x24]
push edi
call fcn.1006bfc0
mov ebx, eax
add esp, 0x14
cmp ebx, 0x51
je 0x1009c918
push edi
call fcn.1007c380
add esp, 4
test eax, eax
jne 0x1009c90b
test ebx, ebx
jne 0x1009c8f0
cmp dword [esp + 0x1c], ebx
jle 0x1009c87a
cmp dword [esi + 0xb0], 2
jne 0x1009c6ea
mov ecx, dword [esi + 0xb8]
mov eax, ecx
mov edx, dword [esi + 0xbc]
or eax, edx
je 0x1009c68d
sub ecx, 1
mov dword [esi + 0xb8], ecx
sbb edx, ebx
mov dword [esi + 0xbc], edx
js 0x1009c677
jg 0x1009c81d
test ecx, ecx
jne 0x1009c81d
mov eax, dword [esp + 0x34]
mov dword [esi + 0xb0], 0
mov byte [eax], 1
jmp 0x1009c83a
cmp byte [esi + 0xc4], 0
je 0x1009c81d
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 1
lea eax, [esp + 0x34]
push eax
lea ebp, [esi + 0x78]
push ebp
push edi
call fcn.100a0280
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x1009c855
push ebp
push edi
call fcn.100a0270
add esp, 8
test al, al
je 0x1009c81d
push str.chunk_reading_DONE
push edi
call fcn.1006b920
add esp, 8
jmp 0x1009c813
push 1
lea eax, [esp + 0x30]
push eax
lea ebp, [esi + 0x50]
push ebp
call fcn.100602d0
add esp, 0xc
test eax, eax
jne 0x1009c85f
cmp byte [esp + 0x2c], 0xa
jne 0x1009c81d
inc dword [esi + 0x74]
push ebp
call fcn.10060340
mov ebx, eax
push ebp
mov dword [esp + 0x28], ebx
call fcn.10060330
push eax
push ebx
push 1
push edi
mov dword [esp + 0x28], eax
call fcn.1006b7b0
push dword [esp + 0x28]
xor ecx, ecx
cmp dword [esi + 0x74], 1
push ebx
sete cl
lea ecx, [ecx*8 + 0x14]
push ecx
push edi
call fcn.1006bdc0
add esp, 0x28
test eax, eax
jne 0x1009c91a
push 1
push dword [esp + 0x14]
push edi
call fcn.10076b10
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1009c855
mov ecx, dword [esp + 0x20]
mov al, byte [ecx]
cmp al, 0xd
je 0x1009c7a5
cmp al, 0xa
je 0x1009c7a5
push ecx
push esi
push edi
push dword [esp + 0x34]
call fcn.1009c340
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1009c855
push ebp
call fcn.10060350
add esp, 4
jmp 0x1009c81d
cmp dword [edi + 0xd8], 0x197
jne 0x1009c813
cmp byte [edi + 0xd79], 0
jne 0x1009c813
mov edx, dword [esi + 0xb8]
mov eax, edx
mov ecx, dword [esi + 0xbc]
or eax, ecx
mov dword [esi + 0xb0], 2
je 0x1009c7e8
push ecx
push edx
push str.Ignore__lld_bytes_of_response_body
push edi
call fcn.1006b920
add esp, 0x10
jmp 0x1009c81d
cmp byte [esi + 0xc4], 0
je 0x1009c801
push str.Ignore_chunked_response_body
push edi
call fcn.1006b920
add esp, 8
jmp 0x1009c81d
push str.CONNECT:_no_content_length_or_chunked
push dword [esp + 0x2c]
push edi
call fcn.1006b9b0
add esp, 0xc
mov dword [esi + 0xb0], 0
mov eax, dword [esi + 0xb0]
test eax, eax
jne 0x1009c5f0
mov ecx, dword [esp + 0x34]
mov byte [ecx], 1
test ebx, ebx
jne 0x1009c855
test eax, eax
jne 0x1009c855
mov eax, dword [edi + 0xd9c]
sub eax, 0xc8
cmp eax, 0x64
jb 0x1009c855
push edi
call fcn.10077020
add esp, 4
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x14
ret
push str.CONNECT_response_too_large
push edi
call fcn.1006b850
add esp, 8
mov eax, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [edi + 0x168], 0
je 0x1009c8a9
cmp dword [edi + 0x988], 0
je 0x1009c8a9
cmp dword [edi + 0xd38], 0
je 0x1009c8a9
push str.Proxy_CONNECT_connection_closed
push edi
mov byte [esi + 0xc5], 1
call fcn.1006b920
jmp 0x1009c8bc
push str.Proxy_CONNECT_aborted
push edi
mov dword [esp + 0x1c], 1
call fcn.1006b850
add esp, 8
mov dword [esi + 0xb0], 0
xor eax, eax
cmp dword [esp + 0x14], 0
je 0x1009c82b
mov ecx, dword [esp + 0x34]
test eax, eax
pop edi
sete al
mov ebx, 0x38
pop esi
mov byte [ecx], al
mov eax, ebx
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x34]
pop edi
mov dword [esi + 0xb0], 0
pop esi
mov byte [eax], 1
mov eax, ebx
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x14
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret