Function at 0x101298a0
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.101e2a60
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0x10
lea ecx, [esi + 4]
mov edx, dword [ecx + 0x10]
push edi
mov dword [ebp - 0x70], esi
jb 0x101298c3
mov ecx, dword [ecx]
push 4
push str.http
call fcn.10050450
add esp, 8
test al, al
je 0x1012a8e9
mov al, byte [esi + 1]
xorps xmm0, xmm0
movups xmmword [ebp - 0x104], xmm0
movups xmmword [ebp - 0xf4], xmm0
test al, al
jne 0x101298f9
mov eax, 2
jmp 0x10129906
cmp al, 1
jne 0x1012a8e2
mov eax, 0x17
cmp dword [esi + 0x48], 0x10
mov dword [ebp - 0x100], eax
lea eax, [esi + 0x34]
mov dword [ebp - 0xfc], 1
jb 0x10129921
mov eax, dword [eax]
cmp dword [esi + 0x30], 0x10
lea edi, [esi + 0x1c]
mov ecx, edi
jb 0x1012992e
mov ecx, dword [edi]
lea edx, [ebp - 0xd4]
push edx
lea edx, [ebp - 0x104]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1012a90a
mov ecx, dword [ebp + 0xc]
mov ebx, closesocket
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xb8], eax
mov eax, ebx
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 1
jb 0x1012a948
cmp dword [ecx + 0x14], 0x10
jb 0x10129978
mov ecx, dword [ecx]
push 1
push 0x1025a064
push edx
push ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0xac]
call fcn.10021010
lea eax, [esi + 0x4c]
push eax
lea ecx, [ebp - 0xac]
call fcn.100256a0
push str._HTTP_1.1_r_n
lea ecx, [ebp - 0x6c]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x6c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x5c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
call fcn.10025030
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xd0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x58]
cmp edx, 0x10
jb 0x10129a2a
mov ecx, dword [ebp - 0x6c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10129a20
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012a94d
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
cmp edx, 0x10
jb 0x10129a76
mov ecx, dword [ebp - 0xac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10129a6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012a94d
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov eax, dword [ebp + 0x14]
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], eax
cmp esi, eax
je 0x10129aff
mov ecx, dword [esi + 0x10]
mov eax, ebx
sub eax, ecx
cmp eax, 2
jb 0x1012a948
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10129a9f
mov eax, dword [esi]
push 2
push 0x1025ed48
push ecx
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x6c]
call fcn.10021010
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0xd0]
call fcn.100256a0
mov edx, dword [ebp - 0x58]
cmp edx, 0x10
jb 0x10129af7
mov ecx, dword [ebp - 0x6c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10129aed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012aa51
push edx
push ecx
call fcn.101e1f2f
add esp, 8
add esi, 0x18
cmp esi, dword [ebp + 0xc]
jne 0x10129a85
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x94]
mov edx, dword [esi + 4]
sub edx, dword [esi]
call fcn.10020810
mov ecx, dword [edi + 0x10]
sub ebx, ecx
mov dword [ebp + 0xc], eax
cmp ebx, 6
jb 0x1012a952
cmp dword [edi + 0x14], 0x10
jb 0x10129b2b
mov edi, dword [edi]
push ecx
push edi
push 6
push str.Host:
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0xac]
call fcn.10021010
push str._r_nContent_Length:
lea ecx, [ebp - 0xac]
call fcn.10025030
push dword [ebp + 0xc]
lea ecx, [ebp - 0x6c]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
movq qword [ebp - 0x24], xmm0
call fcn.10021100
push str._r_n_r_n
lea ecx, [ebp - 0x6c]
call fcn.10025030
lea ecx, [ebp - 0xd0]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x54]
push eax
movq qword [ebp - 0x44], xmm0
call fcn.100256a0
mov edx, dword [ebp - 0x40]
cmp edx, 0x10
jb 0x10129bf9
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10129bef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012a957
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov edx, dword [ebp - 0x58]
cmp edx, 0x10
jb 0x10129c2d
mov ecx, dword [ebp - 0x6c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10129c23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012a957
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
cmp edx, 0x10
jb 0x10129c73
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10129c69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012a957
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov edx, dword [ebp - 0x98]
cmp edx, 0x10
jb 0x10129cad
mov ecx, dword [ebp - 0xac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10129ca3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012a957
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0xf
mov byte [ebp - 0xac], 0
cmp edx, 0x10
jb 0x10129cff
mov ecx, dword [ebp - 0x94]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10129cf5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012a957
push edx
push ecx
call fcn.101e1f2f
add esp, 8
cmp dword [ebp - 0xbc], 0x10
lea edi, [ebp - 0xd0]
mov ecx, dword [ebp - 0xd0]
setae dl
jb 0x10129d21
mov edi, dword [ebp - 0xc0]
add edi, ecx
jmp 0x10129d31
add edi, dword [ebp - 0xc0]
lea ebx, [ebp - 0xd0]
test dl, dl
je 0x10129d33
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
sub edi, ebx
je 0x10129d78
push edi
lea ecx, [ebp - 0x7c]
call fcn.1012ca90
mov esi, dword [ebp - 0x7c]
push edi
push ebx
push esi
call fcn.101e3770
add esp, 0xc
mov dword [ebp + 0xc], 0
lea eax, [edi + esi]
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x78], eax
call fcn.1012ca30
mov eax, dword [ebp - 0x78]
mov esi, dword [ebp + 0x10]
push dword [ebp + 8]
lea ecx, [ebp - 0x7c]
push dword [esi + 4]
push dword [esi]
push eax
call fcn.1012c350
mov eax, dword [ebp - 0x70]
mov al, byte [eax + 1]
test al, al
jne 0x10129d9a
mov eax, 2
jmp 0x10129da7
cmp al, 1
jne 0x1012a8e2
mov eax, 0x17
push 6
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov dword [ebp - 0xb4], edi
cmp edi, 0xffffffff
je 0x1012a95c
mov eax, dword [ebp - 0xb8]
mov esi, dword [eax + 0x10]
mov ebx, dword [eax + 0x18]
push esi
push ebx
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10129dff
nop dword [eax]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1012a98b
push esi
push ebx
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10129de0
mov ebx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
mov dword [ebp + 0x10], eax
sub ebx, eax
je 0x10129e58
nop dword [eax]
push 0
push ebx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10129e4c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x10129e43
push 0
push ebx
push dword [ebp + 0x10]
push edi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
je 0x10129e22
cmp esi, 0xffffffff
je 0x1012a9ba
mov eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp + 0x10], eax
sub ebx, esi
jne 0x10129e10
mov eax, dword [ebp + 8]
mov word [ebp - 4], 0xa0d
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
xor al, al
mov dword [ebp - 8], 0
mov byte [ebp + 0x13], 1
mov byte [ebp + 0x17], al
mov byte [ebp - 0x12], al
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x11], al
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], eax
nop word [eax + eax]
push 0
push 0x1000
lea eax, [ebp - 0x1108]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10129f20
mov ebx, dword [sym.imp.WS2_32.dll_recv]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x10129f17
push 0
push 0x1000
lea eax, [ebp - 0x1108]
push eax
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x10129ef2
cmp esi, 0xffffffff
je 0x1012aa56
test esi, esi
je 0x1012a7d9
push dword [ebp + 8]
lea eax, [ebp - 0x1108]
add eax, esi
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1108]
push eax
push dword [ebp - 0xc]
call fcn.1012c350
cmp byte [ebp + 0x17], 0
jne 0x1012a583
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 2]
push eax
push ebx
push dword [ebp - 0x10]
lea edx, [ebp - 4]
lea ecx, [ebp - 0xb0]
call fcn.1012bf70
mov esi, dword [ebp - 0xb0]
add esp, 0xc
cmp esi, ebx
je 0x10129ed0
nop word [eax + eax]
push ecx
push esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x54]
call fcn.1004f2b0
mov ebx, dword [ebp - 0x10]
lea eax, [esi + 2]
mov esi, dword [ebp - 0xc]
cmp ebx, eax
je 0x10129faf
sub esi, eax
push esi
push eax
push ebx
call fcn.101e3770
add esp, 0xc
add esi, ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
mov ecx, dword [ebp - 0x44]
mov dword [ebp + 0xc], esi
test ecx, ecx
je 0x1012a528
cmp byte [ebp + 0x13], 0
je 0x1012a111
mov eax, ecx
mov byte [ebp + 0x13], 0
xor ebx, ebx
mov dword [ebp - 0x1c], eax
xor esi, esi
mov dword [ebp - 0x88], ebx
xor edi, edi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], ebx
add eax, 1
je 0x1012a0a5
nop
cmp dword [ebp - 0x40], 0x10
lea ebx, [ebp - 0x54]
cmovae ebx, dword [ebp - 0x54]
setae byte [ebp + 0xf]
cmp edi, ecx
jae 0x1012a01c
sub ecx, edi
lea eax, [edi + ebx]
push ecx
push 0x20
push eax
call fcn.101e3cf0
add esp, 0xc
test eax, eax
je 0x1012a01c
sub eax, ebx
jmp 0x1012a01f
or eax, 0xffffffff
mov ebx, dword [ebp - 0x1c]
cmp eax, 0xffffffff
cmovne ebx, eax
cmp ebx, edi
je 0x1012a08d
mov ecx, ebx
lea eax, [ebp - 0x54]
sub ecx, edi
cmp byte [ebp + 0xf], 0
mov dword [ebp - 0x18], ecx
cmovne eax, dword [ebp - 0x54]
add eax, edi
mov dword [ebp + 0xc], eax
cmp esi, dword [ebp - 0x80]
je 0x1012a073
push ecx
mov dword [esi], 0
mov ecx, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push eax
mov byte [esi], 0
call fcn.1000d310
add esi, 0x18
mov dword [ebp - 0x84], esi
jmp 0x1012a08d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
lea ecx, [ebp - 0x88]
call fcn.1012c060
mov esi, dword [ebp - 0x84]
mov eax, dword [ebp - 0x1c]
lea edi, [ebx + 1]
mov ecx, dword [ebp - 0x44]
inc eax
cmp edi, eax
jb 0x10129ff0
mov ebx, dword [ebp - 0x88]
sub esi, ebx
mov eax, 0x2aaaaaab
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jb 0x1012a101
call fcn.101ed78a
cmp dword [ebx + 0x2c], 0x10
lea esi, [ebx + 0x18]
mov edi, eax
jb 0x1012a0cf
mov esi, dword [esi]
push 0xa
lea eax, [ebp - 0xd8]
mov dword [edi], 0
push eax
push esi
call fcn.101ee2e0
add esp, 0xc
cmp esi, dword [ebp - 0xd8]
je 0x1012a9f3
cmp dword [edi], 0x22
je 0x1012a9e9
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea ecx, [ebp - 0x88]
call fcn.10051040
jmp 0x1012a46a
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x54]
push ecx
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 0xc]
je 0x1012a12d
mov ecx, eax
call fcn.1000d720
add dword [ebx + 8], 0x18
jmp 0x1012a136
push eax
lea ecx, [ebx + 4]
call fcn.10125430
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x54]
mov esi, dword [ebp - 0x54]
cmp edi, 0x10
mov ecx, dword [ebp - 0x44]
cmovae eax, esi
setae byte [ebp + 0xf]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1012a16a
push ecx
push 0x3a
push eax
call fcn.101e3cf0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1012a16a
sub ebx, dword [ebp - 0x18]
jmp 0x1012a16d
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x1012a470
cmp dword [ebp - 0x44], ebx
lea eax, [ebp - 0x54]
mov ecx, ebx
mov dword [ebp - 0x6c], 0
cmovb ecx, dword [ebp - 0x44]
cmp byte [ebp + 0xf], 0
push ecx
cmovne eax, esi
mov dword [ebp - 0x5c], 0
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x58], 0xf
call fcn.1000d310
mov eax, dword [ebp - 0x44]
inc ebx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
cmp eax, ebx
jb 0x1012aa47
sub eax, ebx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x40], 0x10
lea eax, [ebp - 0x54]
cmovae eax, dword [ebp - 0x54]
push ecx
add eax, ebx
lea ecx, [ebp - 0x34]
push eax
call fcn.1000d310
mov ebx, dword [ebp - 0x20]
lea esi, [ebp - 0x34]
mov ecx, dword [ebp - 0x34]
cmp ebx, 0x10
mov edx, dword [ebp - 0x24]
setae al
jb 0x1012a204
lea esi, [ecx + edx]
jmp 0x1012a20d
add esi, edx
lea edi, [ebp - 0x34]
test al, al
je 0x1012a20f
mov edi, ecx
cmp edi, esi
je 0x1012a231
movsx eax, byte [edi]
push eax
call fcn.101eef30
add esp, 4
test eax, eax
je 0x1012a228
inc edi
cmp edi, esi
jne 0x1012a213
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
cmp ebx, 0x10
lea eax, [ebp - 0x34]
setae byte [ebp + 0xf]
jb 0x1012a250
mov eax, ecx
mov esi, ecx
sub edi, eax
sub esi, ecx
mov eax, edx
sub eax, esi
cmp eax, edi
cmovb edi, eax
jmp 0x1012a273
cmp byte [ebp + 0xf], 0
mov esi, eax
je 0x1012a267
sub edi, eax
sub esi, ecx
mov eax, edx
sub eax, esi
cmp eax, edi
cmovb edi, eax
jmp 0x1012a273
sub edi, eax
lea ecx, [ebp - 0x34]
xor esi, esi
cmp edx, edi
cmovb edi, edx
sub edx, edi
add ecx, esi
mov dword [ebp - 0x24], edx
sub edx, esi
inc edx
push edx
lea eax, [ecx + edi]
push eax
push ecx
call fcn.101e3770
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x24]
add esp, 0xc
cmp ecx, 0x10
setae bl
jb 0x1012a2b1
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
add edi, edx
mov dword [ebp - 0x1c], edi
mov esi, eax
mov dword [ebp - 0x18], edi
mov dword [ebp + 0xc], eax
jmp 0x1012a2d1
lea edi, [edx + eax]
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x18], edi
mov dword [ebp + 0xc], eax
test bl, bl
je 0x1012a2ce
mov eax, dword [ebp - 0x34]
mov esi, eax
mov dword [ebp + 0xc], eax
jmp 0x1012a2d1
lea esi, [ebp - 0x34]
add esi, edx
cmp esi, eax
je 0x1012a2ff
mov edi, dword [ebp + 0xc]
nop word [eax + eax]
movsx eax, byte [esi - 1]
push eax
call fcn.101eef30
add esp, 4
test eax, eax
je 0x1012a2f6
dec esi
cmp esi, edi
jne 0x1012a2e0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
cmp ecx, 0x10
lea eax, [ebp - 0x34]
mov ecx, esi
setae byte [ebp + 0xf]
jb 0x1012a325
mov edi, dword [ebp - 0x34]
mov eax, edx
mov ebx, dword [ebp - 0x18]
sub ecx, edi
sub ebx, esi
mov dword [ebp - 0x1c], ecx
sub eax, ecx
cmp eax, ebx
cmovb ebx, eax
jmp 0x1012a343
sub ecx, eax
mov ebx, edi
sub ebx, esi
mov dword [ebp - 0x1c], ecx
mov eax, edx
lea edi, [ebp - 0x34]
sub eax, ecx
cmp eax, ebx
cmovb ebx, eax
cmp byte [ebp + 0xf], 0
je 0x1012a343
mov edi, dword [ebp - 0x34]
sub edx, ebx
add ecx, edi
mov dword [ebp - 0x24], edx
sub edx, dword [ebp - 0x1c]
inc edx
push edx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.101e3770
mov ebx, dword [ebp - 0x6c]
lea ecx, [ebp - 0x6c]
mov esi, dword [ebp - 0x5c]
add esp, 0xc
cmp dword [ebp - 0x58], 0x10
mov edx, esi
cmovae ecx, ebx
setae byte [ebp + 0xf]
push 0xe
push str.Content_Length
call fcn.10050450
add esp, 8
test al, al
je 0x1012a4d3
call fcn.101ed78a
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
mov edi, eax
lea eax, [ebp - 0xdc]
cmovae esi, dword [ebp - 0x34]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.101ee334
add esp, 0xc
mov edx, eax
mov dword [ebp - 0x70], edx
cmp esi, dword [ebp - 0xdc]
je 0x1012aa0c
cmp dword [edi], 0x22
je 0x1012aa02
mov ecx, dword [ebp + 8]
add ecx, 0x10
mov byte [ebp - 0x12], 1
mov eax, dword [ecx + 8]
sub eax, dword [ecx]
cmp edx, eax
jbe 0x1012a3f2
cmp edx, 0x7fffffff
ja 0x1012a9fd
push edx
call fcn.1012bde0
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x20]
cmp edi, 0x10
jb 0x1012a426
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x1012a41c
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012a94d
push edi
push esi
call fcn.101e1f2f
add esp, 8
cmp byte [ebp + 0xf], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
je 0x1012a46a
mov ecx, dword [ebp - 0x58]
mov eax, ebx
inc ecx
cmp ecx, 0x1000
jb 0x1012a460
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012a94d
push ecx
push ebx
call fcn.101e1f2f
add esp, 8
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x54]
cmp edi, 0x10
jb 0x1012a49e
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x1012a494
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012a94d
push edi
push esi
call fcn.101e1f2f
add esp, 8
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 2]
push eax
push edi
push dword [ebp - 0x10]
lea edx, [ebp - 4]
lea ecx, [ebp - 0xb0]
call fcn.1012bf70
mov esi, dword [ebp - 0xb0]
add esp, 0xc
cmp esi, edi
jne 0x10129f80
mov edi, dword [ebp - 0xb4]
jmp 0x10129ed0
cmp byte [ebp + 0xf], 0
lea ecx, [ebp - 0x6c]
push 0x11
cmovne ecx, ebx
mov edx, esi
push str.Transfer_Encoding
call fcn.10050450
add esp, 8
test al, al
je 0x1012a3f2
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
mov esi, dword [ebp - 0x34]
cmp edi, 0x10
mov edx, dword [ebp - 0x24]
push 7
cmovae ecx, esi
push str.chunked
call fcn.10050450
add esp, 8
test al, al
je 0x1012aa16
mov byte [ebp - 0x11], 1
jmp 0x1012a3f8
mov edx, dword [ebp - 0x40]
mov byte [ebp + 0x17], 1
cmp edx, 0x10
jb 0x1012a569
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1012a556
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012a94d
push edx
push ecx
call fcn.101e1f2f
mov esi, dword [ebp - 0xc]
add esp, 8
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0xc], esi
mov edi, dword [ebp - 0xb4]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
jmp 0x1012a58c
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0xc], esi
cmp byte [ebp - 0x11], 0
je 0x1012a756
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
nop dword [eax]
test ecx, ecx
je 0x1012a612
push dword [ebp + 8]
sub esi, ebx
mov eax, ecx
cmp esi, ecx
mov ecx, dword [ebp + 8]
cmovb eax, esi
mov dword [ebp - 0x18], eax
add eax, ebx
push eax
push ebx
push dword [ecx + 0x14]
lea ecx, [ecx + 0x10]
call fcn.1012c350
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0xc]
lea ecx, [ebx + eax]
cmp ebx, ecx
je 0x1012a5ed
sub esi, ecx
push esi
push ecx
push ebx
call fcn.101e3770
mov eax, dword [ebp - 0x18]
add esp, 0xc
add esi, ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
mov ecx, dword [ebp - 0x38]
mov edx, 1
sub ecx, eax
mov dword [ebp + 0xc], esi
mov eax, dword [ebp - 0x3c]
movzx eax, al
cmove eax, edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
cmp ebx, esi
jne 0x1012a5a0
jmp 0x10129ed0
test al, al
je 0x1012a647
mov eax, esi
sub eax, ebx
cmp eax, 2
jb 0x10129ed0
xor al, al
mov dword [ebp - 0x3c], eax
lea eax, [ebx + 2]
cmp ebx, eax
je 0x1012a647
sub esi, eax
push esi
push eax
push ebx
call fcn.101e3770
add esp, 0xc
add esi, ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0xc], esi
mov dword [ebp - 0xc], esi
lea eax, [ebp - 2]
push eax
push esi
push ebx
lea edx, [ebp - 4]
lea ecx, [ebp - 0xe0]
call fcn.1012bf70
mov esi, dword [ebp - 0xe0]
add esp, 0xc
cmp esi, dword [ebp + 0xc]
je 0x10129ed0
push ecx
push esi
push ebx
lea ecx, [ebp - 0xac]
call fcn.1004f2b0
mov ebx, dword [ebp - 0x10]
lea eax, [esi + 2]
cmp ebx, eax
je 0x1012a69b
mov esi, dword [ebp - 0xc]
sub esi, eax
push esi
push eax
push ebx
call fcn.101e3770
lea eax, [esi + ebx]
add esp, 0xc
mov dword [ebp - 0xc], eax
call fcn.101ed78a
cmp dword [ebp - 0x98], 0x10
lea esi, [ebp - 0xac]
mov ebx, eax
lea eax, [ebp - 0xe4]
cmovae esi, dword [ebp - 0xac]
push 0x10
push eax
push esi
mov dword [ebx], 0
call fcn.101ee334
add esp, 0xc
mov ecx, eax
mov dword [ebp - 0x38], ecx
cmp esi, dword [ebp - 0xe4]
je 0x1012aa0c
cmp dword [ebx], 0x22
je 0x1012aa02
mov edx, dword [ebp - 0x98]
test ecx, ecx
je 0x1012a78a
cmp edx, 0x10
jb 0x1012a72d
mov ecx, dword [ebp - 0xac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1012a720
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012aa4c
push edx
push ecx
call fcn.101e1f2f
mov ecx, dword [ebp - 0x38]
add esp, 8
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0xf
mov byte [ebp - 0xac], 0
mov dword [ebp + 0xc], esi
jmp 0x1012a599
push dword [ebp + 8]
push esi
mov esi, dword [ebp + 8]
push ebx
push dword [esi + 0x14]
lea ecx, [esi + 0x10]
call fcn.1012c350
cmp byte [ebp - 0x12], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
je 0x10129ed0
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x70]
jb 0x10129ed0
jmp 0x1012a7df
cmp edx, 0x10
jb 0x1012a7be
mov ecx, dword [ebp - 0xac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1012a7b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012aa4c
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0xf
mov byte [ebp - 0xac], 0
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1012a825
mov edx, dword [ebp - 8]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1012a806
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012aa51
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push edi
call dword [0x10259300]
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x1012a875
mov edx, dword [ebp - 0x74]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1012a856
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012aa51
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov edx, dword [ebp - 0xbc]
cmp edx, 0x10
jb 0x1012a8af
mov ecx, dword [ebp - 0xd0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1012a8a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012aa51
push edx
push ecx
call fcn.101e1f2f
add esp, 8
mov eax, dword [ebp - 0xb8]
push eax
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0xf
mov byte [ebp - 0xd0], 0
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str.Unsupported_protocol
jmp 0x1012a8ee
push str.Only_HTTP_scheme_is_supported
lea ecx, [ebp - 0x88]
call fcn.10128510
push 0x10276578
lea eax, [ebp - 0x88]
push eax
call fcn.101e3e35
push edi
mov edx, str.Failed_to_get_address_info_of
lea ecx, [ebp - 0x6c]
call fcn.100210b0
add esp, 4
mov esi, eax
call sub.WS2_32.dll_WSAGetLastError
push esi
mov ecx, eax
call fcn.10025c60
push eax
push ecx
lea ecx, [ebp - 0x90]
call fcn.1012cb20
push 0x102763fc
lea eax, [ebp - 0x90]
push eax
call fcn.101e3e35
call fcn.1000d300
call fcn.101e6db2
call fcn.1000d300
call fcn.101e6db2
call sub.WS2_32.dll_WSAGetLastError
push str.Failed_to_create_socket
mov ecx, eax
call fcn.10025c60
push eax
push ecx
lea ecx, [ebp - 0x90]
call fcn.1012cb50
push 0x102763fc
lea eax, [ebp - 0x90]
push eax
call fcn.101e3e35
call sub.WS2_32.dll_WSAGetLastError
push str.Failed_to_connect
mov ecx, eax
call fcn.10025c60
push eax
push ecx
lea ecx, [ebp - 0x90]
call fcn.1012cb50
push 0x102763fc
lea eax, [ebp - 0x90]
push eax
call fcn.101e3e35
call sub.WS2_32.dll_WSAGetLastError
push str.Failed_to_send_data
mov ecx, eax
call fcn.10025c60
push eax
push ecx
lea ecx, [ebp - 0x90]
call fcn.1012cb50
push 0x102763fc
lea eax, [ebp - 0x90]
push eax
call fcn.101e3e35
push str.stoi_argument_out_of_range
call fcn.101dfee8
push str.invalid_stoi_argument
call fcn.101dfea8
call fcn.10006740
push str.stoul_argument_out_of_range
call fcn.101dfee8
push str.invalid_stoul_argument
call fcn.101dfea8
lea eax, [ebp - 0x34]
mov edx, str.Unsupported_transfer_encoding:
push eax
lea ecx, [ebp - 0x6c]
call fcn.100210b0
add esp, 4
lea ecx, [ebp - 0x88]
push eax
call fcn.10128550
push 0x10276504
lea eax, [ebp - 0x88]
push eax
call fcn.101e3e35
call fcn.100184d0
call fcn.101e6db2
call fcn.101e6db2
call sub.WS2_32.dll_WSAGetLastError
push str.Failed_to_read_data
mov ecx, eax
call fcn.10025c60
push eax
push ecx
lea ecx, [ebp - 0x30]
call fcn.1012cb50
push 0x102763fc
lea eax, [ebp - 0x30]
push eax
call fcn.101e3e35
int3