Function at 0x481600
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x4c5a48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov al, byte [esp + 0x38]
push ebp
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
mov byte [esp + 0x10], al
call fcn.004820f0
mov ebp, dword [esp + 0x3c]
mov ecx, esi
push ebp
mov dword [esp + 0x38], 0
call fcn.00481570
test eax, eax
jne 0x481677
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.004820f0
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc
push ebx
push edi
push 0x800
call fcn.00490d97
mov ebx, eax
mov eax, dword [esi + 0x24]
add esp, 4
mov dword [esp + 0x44], ebx
test eax, eax
jne 0x4816d3
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 8]
add eax, 0x190
push eax
call fcn.00490d97
mov edi, eax
mov eax, dword [esi + 4]
add esp, 4
mov dword [esp + 0x48], edi
test eax, eax
jne 0x4816ba
mov eax, 0x4dc164
mov ecx, dword [esp + 0x4c]
push ecx
push eax
push str.CONNECT__s:_d_HTTP_1.1_r_nAccept:___r_nProxy_Connection:_Keep_Alive_r_nContent_length:_0_r_n_r_n
push edi
call fcn.0049202e
add esp, 0x10
jmp 0x4817b8
mov dl, byte [esp + 0x48]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], dl
call fcn.004820f0
mov eax, dword [0x4dc168]
lea ecx, [esi + 0x1c]
push eax
push 0
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
call fcn.00482140
push 0x3a
push 1
lea ecx, [esp + 0x2c]
call fcn.00481e20
mov edx, dword [0x4dc168]
add esi, 0x2c
push edx
push 0
push esi
lea ecx, [esp + 0x30]
call fcn.00482140
mov eax, dword [esp + 0x2c]
lea ecx, [eax + eax]
push ecx
call fcn.00490d97
mov ecx, dword [esp + 0x2c]
add esp, 4
test ecx, ecx
mov esi, eax
jne 0x481742
mov ecx, 0x4dc164
mov eax, dword [esp + 0x2c]
lea edx, [eax + eax]
push edx
push eax
push esi
push ecx
call fcn.0047ea80
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x58]
repne scasb al, byte es:[edi]
mov edx, dword [ebx + 8]
not ecx
dec ecx
lea eax, [ecx + edx + 0x190]
push eax
call fcn.00490d97
mov ecx, dword [ebx + 4]
add esp, 0x14
test ecx, ecx
mov dword [esp + 0x48], eax
jne 0x481785
mov ecx, 0x4dc164
mov edx, dword [esp + 0x4c]
push esi
push edx
push ecx
push str.CONNECT__s:_d_HTTP_1.1_r_nProxy_Authorization:_Basic__s_r_nAccept:___r_nProxy_Connection:_Keep_Alive_r_nContent_length:_0_r_n_r_n
push eax
call fcn.0049202e
push esi
call fcn.00490cae
add esp, 0x18
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 0
push 1
call fcn.004820f0
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x48]
push 0
not ecx
dec ecx
push ecx
push eax
push ebp
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4817e3
mov dword [esp + 0x10], 0
jmp 0x4819b3
push 0
push 0x800
push ebx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4817d6
cmp eax, 0xffffffff
je 0x4817d6
mov byte [ebx + eax], 0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
call fcn.00482340
test al, al
je 0x481841
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov byte [eax + ebx], 0
mov edi, 0x5c6e2c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [esp + 0x4c], esi
je 0x4818c0
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jbe 0x4818bb
cmp esi, ebp
ja 0x4818bb
movsx edx, byte [0x5c6e2c]
mov ebx, dword [esp + 0x18]
mov ecx, 1
sub ecx, esi
add ebp, ecx
push ebp
push edx
push ebx
call fcn.004916d0
add esp, 0xc
test eax, eax
je 0x4818bb
jmp 0x48188d
mov esi, dword [esp + 0x4c]
mov ecx, esi
mov edi, 0x5c6e2c
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x481911
sub ebx, eax
lea ebp, [ebx + ebp - 1]
lea ebx, [eax + 1]
movsx eax, byte [0x5c6e2c]
push ebp
push eax
push ebx
call fcn.004916d0
add esp, 0xc
test eax, eax
jne 0x481889
mov eax, dword [0x4dc168]
cmp eax, dword [0x4dc168]
je 0x4819a7
push eax
lea ecx, [esp + 0x28]
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.00481c90
mov edx, dword [0x4dc168]
lea ecx, [esp + 0x14]
push edx
push 0
push eax
mov byte [esp + 0x48], 2
call fcn.00481ef0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x481920
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x481917
cmp al, 0xff
je 0x481917
dec al
mov byte [ecx], al
jmp 0x481920
sub eax, dword [esp + 0x18]
jmp 0x4818c0
push ecx
call fcn.004b5b96
add esp, 4
mov edi, 0x5c6e28
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [esp + 0x4c], esi
je 0x48199f
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jbe 0x48199a
cmp esi, ebp
ja 0x48199a
movsx ecx, byte [0x5c6e28]
mov ebx, dword [esp + 0x18]
mov eax, 1
sub eax, esi
add ebp, eax
push ebp
push ecx
push ebx
call fcn.004916d0
add esp, 0xc
test eax, eax
je 0x48199a
jmp 0x48196c
mov esi, dword [esp + 0x4c]
mov ecx, esi
mov edi, 0x5c6e28
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4819ed
sub ebx, eax
lea ebp, [ebx + ebp - 1]
lea ebx, [eax + 1]
movsx eax, byte [0x5c6e28]
push ebp
push eax
push ebx
call fcn.004916d0
add esp, 0xc
test eax, eax
jne 0x481968
mov eax, dword [0x4dc168]
cmp eax, dword [0x4dc168]
jne 0x4819af
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x4819c0
push ebx
call fcn.00490cae
add esp, 4
mov eax, dword [esp + 0x48]
pop edi
test eax, eax
pop ebx
je 0x4819d3
push eax
call fcn.00490cae
add esp, 4
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4819fd
mov al, byte [ecx - 1]
test al, al
je 0x4819f3
cmp al, 0xff
je 0x4819f3
dec al
mov byte [ecx - 1], al
jmp 0x4819fd
sub eax, dword [esp + 0x18]
jmp 0x48199f
dec ecx
push ecx
call fcn.004b5b96
add esp, 4
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 8]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc