Function at 0x50d1a0
Capabilities:
Make an http request with a cookie
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab516
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x50], esi
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp byte [eax + 0x172], bl
jne 0x50d216
mov ecx, dword [esi + 0x3174]
cmp ecx, ebx
je 0x50d1f1
cmp dword [esi + 0x3178], ebx
je 0x50d216
lea edx, [esi + 0x3170]
push ebx
push edx
lea edx, [esi + 0x3178]
push edx
mov edx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0xc]
push edx
add eax, 0x19c
push ecx
push eax
mov ecx, esi
call fcn.00513230
mov eax, dword [ebp + 8]
push 1
cmp eax, ebx
je 0x50d227
mov eax, dword [0x6623d0]
push eax
jmp 0x50d22e
mov ecx, dword [0x6623cc]
push ecx
mov ecx, esi
call fcn.004f72f0
mov ecx, esi
call fcn.00511d20
mov ecx, esi
call fcn.00512390
cmp eax, ebx
jne 0x50d8c0
mov al, byte [esi + 0x30d3]
mov dword [ebp - 0x20], ebx
cmp al, bl
je 0x50d271
lea edx, [ebp - 0x9c]
push str.Range:_bytes0__r_n
push edx
call fcn.0056b4da
add esp, 8
jmp 0x50d37d
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
cmp eax, ebx
jg 0x50d2a0
jl 0x50d281
cmp ecx, ebx
ja 0x50d2a0
lea eax, [ebp - 0x9c]
push 0x660ff8
push eax
call fcn.0056b4da
add esp, 8
mov byte [esi + 0x30d0], bl
jmp 0x50d37d
mov edx, dword [esi + 0x30cc]
cmp edx, ebx
je 0x50d2af
mov edx, dword [edx + 0x68]
jmp 0x50d2b1
xor edx, edx
mov edi, dword [esi + 0x18]
or edi, dword [esi + 0x1c]
je 0x50d33f
cmp edx, ebx
je 0x50d33f
mov edx, dword [esi + 0x80]
cmp dword [edx + 0x2a0], ebx
je 0x50d33f
mov ecx, esi
call fcn.00512300
mov edi, eax
mov eax, dword [esi + 0x30cc]
cmp eax, ebx
je 0x50d304
cmp byte [eax + 0x1c8], bl
jne 0x50d2ff
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
sub ecx, 1
sbb eax, ebx
cmp eax, edx
jl 0x50d304
jg 0x50d2ff
cmp ecx, edi
jbe 0x50d304
add edi, 1
adc edx, ebx
mov al, byte [esi + 0x90]
cmp al, bl
mov eax, dword [esi + 0x20]
je 0x50d31b
mov ecx, dword [esi + 0x24]
add eax, 0x30
adc ecx, ebx
jmp 0x50d31e
mov ecx, dword [esi + 0x24]
push edx
push edi
push ecx
push eax
lea eax, [ebp - 0x9c]
push str.Range:_bytes_I64d__I64d_r_n
push eax
call fcn.0056b4da
add esp, 0x18
mov byte [esi + 0x3125], 1
jmp 0x50d37d
mov edx, dword [esi + 0x80]
cmp dword [edx + 0x2a0], ebx
jne 0x50d354
mov dword [ebp - 0x20], 1
cmp byte [esi + 0x90], bl
je 0x50d361
add ecx, 0x30
adc eax, ebx
push eax
push ecx
lea eax, [ebp - 0x9c]
push str.Range:_bytes_I64d__r_n
push eax
call fcn.0056b4da
add esp, 0x10
mov byte [esi + 0x3125], bl
mov eax, dword [esi + 0x84]
cmp eax, ebx
je 0x50d38c
mov ecx, dword [eax + 0xc]
jmp 0x50d395
mov ecx, dword [esi + 0x80]
mov ecx, dword [ecx + 0x14]
cmp eax, ebx
je 0x50d39e
mov eax, dword [eax + 0x10]
jmp 0x50d3a7
mov edx, dword [esi + 0x80]
mov eax, dword [edx + 0x24]
cmp ecx, 0x50
mov dword [ebp - 0x48], eax
jne 0x50d404
cmp eax, 1
je 0x50d411
push ecx
lea ecx, [ebp - 0x5c]
push str.:_ld
push ecx
call fcn.0056b4da
add esp, 0xc
mov edx, dword [0x65ca8c]
mov dword [ebp - 0x1c], edx
mov eax, dword [esi + 0x80]
mov byte [ebp - 4], 1
cmp byte [eax + 0x2ba], bl
je 0x50d3e9
cmp byte [eax + 0x2bc], bl
jne 0x50d424
mov eax, dword [eax + 0x18]
cmp eax, ebx
je 0x50d424
push eax
lea eax, [ebp - 0x1c]
push str.Referer:__s_r_n
push eax
call fcn.0057f8fb
add esp, 0xc
jmp 0x50d431
cmp ecx, 0x1bb
jne 0x50d3b4
cmp eax, 2
jne 0x50d3b4
lea eax, [ebp - 0x5c]
push 0x660ff8
push eax
call fcn.0056b4da
add esp, 8
jmp 0x50d3c6
push 0x660ff8
lea ecx, [ebp - 0x1c]
call fcn.00586cbc
push 0x660ff8
lea ecx, [ebp - 0x30]
call fcn.00586ba1
mov eax, dword [esi + 0x80]
mov byte [ebp - 4], 2
cmp byte [eax + 0x2bf], bl
je 0x50d4a5
mov edi, dword [eax + 0x20]
cmp edi, ebx
je 0x50d4a5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jle 0x50d4a5
mov edx, dword [esi + 0x80]
mov eax, dword [edx + 0x20]
mov dl, byte [eax + ecx - 1]
cmp dl, 0xa
lea eax, [eax + ecx - 1]
je 0x50d481
cmp dl, 0xd
jne 0x50d485
mov byte [eax], bl
jmp 0x50d460
cmp ecx, 1
jle 0x50d4a5
mov ecx, dword [esi + 0x80]
lea eax, [ebp - 0x30]
mov edx, dword [ecx + 0x20]
push edx
push str.If_Modified_Since:__s_r_n
push eax
call fcn.0057f8fb
add esp, 0xc
mov ecx, dword [0x65ca8c]
mov dword [ebp - 0x18], ecx
mov edx, dword [esi + 0x80]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 4], 3
mov edi, dword [edx + 0xd0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x50d4e4
mov edx, dword [edx + 0xd0]
lea eax, [ebp - 0x18]
push edx
push 0x636fa0
push eax
call fcn.0057f8fb
add esp, 0xc
jmp 0x50d4f5
lea ecx, [ebp - 0x18]
push str.application_x_www_form_urlencoded
push ecx
call fcn.0057f8fb
add esp, 8
mov edx, dword [0x65ca8c]
mov dword [ebp - 0x24], edx
mov eax, dword [esi + 0x80]
mov byte [ebp - 4], 4
cmp byte [eax + 0x15a], bl
je 0x50d52f
mov eax, dword [eax + 0x15c]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x24]
mov eax, dword [eax - 8]
push eax
push ecx
push str.Content_Type:__s_r_nContent_Length:__d_r_n
push edx
call fcn.0057f8fb
add esp, 0x10
mov eax, dword [esi + 0x80]
cmp byte [eax + 0x16c], bl
je 0x50d559
mov eax, dword [eax + 0x168]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
lea edx, [ebp - 0x24]
push str.Content_Type:__s_r_nContent_Length:__d_r_n
push edx
call fcn.0057f8fb
add esp, 0x10
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x2c], eax
mov edx, dword [esi + 0x80]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 4], 5
mov edi, dword [edx + 0x2c8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x50d595
mov ecx, dword [edx + 0x2c8]
lea edx, [ebp - 0x2c]
push ecx
push str.Cookie2:__s_r_n
push edx
call fcn.0057f8fb
add esp, 0xc
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x34], eax
mov edx, dword [esi + 0x80]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 4], 6
mov edi, dword [edx + 0x2cc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x50d5d1
mov ecx, dword [edx + 0x2cc]
lea edx, [ebp - 0x34]
push ecx
push str.Accept_Language:__s_r_n
push edx
call fcn.0057f8fb
add esp, 0xc
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x50d5f2
mov dword [ebp - 0x20], str.Cache_Control:_no_cache_r_nPragma:_no_cache_r_n
mov ecx, 0x660ff8
jmp 0x50d5fa
mov ecx, 0x660ff8
mov dword [ebp - 0x20], ecx
mov eax, dword [esi + 0x30e0]
mov dword [ebp - 0x38], 0x637b34
cmp eax, ebx
jne 0x50d60e
mov dword [ebp - 0x38], ecx
cmp eax, ebx
mov dword [ebp - 0x44], eax
jne 0x50d618
mov dword [ebp - 0x44], ecx
cmp eax, ebx
mov dword [ebp - 0x3c], str.Cookie:
jne 0x50d626
mov dword [ebp - 0x3c], ecx
mov ecx, dword [esi + 0x80]
cmp byte [ecx + 0x172], bl
je 0x50d64f
mov edx, dword [esi + 0x30ec]
lea ecx, [ebp - 0x54]
push edx
call fcn.00586ba1
or dword [ebp - 0x14], 1
mov edi, dword [eax]
mov byte [ebp - 4], 8
jmp 0x50d655
mov edi, dword [esi + 0x3170]
mov eax, dword [esi + 0x3170]
cmp dword [eax - 8], ebx
je 0x50d689
mov ecx, dword [esi + 0x80]
cmp byte [ecx + 0x172], bl
sete al
cmp al, bl
je 0x50d689
mov edx, dword [esi + 0x3174]
mov dword [ebp - 0x40], str.Connection:_Keep_Alive_r_n
cmp edx, ebx
sete al
cmp al, bl
jne 0x50d690
mov dword [ebp - 0x40], 0x660ff8
mov eax, dword [esi + 0x84]
cmp eax, ebx
jne 0x50d6b6
mov edx, dword [esi + 0x80]
lea ecx, [ebp - 0x4c]
mov eax, dword [edx]
push eax
call fcn.00586ba1
or dword [ebp - 0x14], 2
mov dword [ebp - 4], 9
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [esi + 0x80]
cmp edx, ebx
je 0x50d6cc
mov edx, str.HEAD
jmp 0x50d6e8
cmp byte [eax + 0x15a], bl
jne 0x50d6e3
mov dl, byte [eax + 0x16c]
cmp dl, bl
mov edx, 0x65241c
je 0x50d6e8
mov edx, str.POST
mov ebx, dword [eax + 0x15c]
push ebx
mov ebx, dword [ebp - 0x20]
push ebx
mov ebx, dword [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x2c]
push ebx
mov ebx, dword [ebp - 0x38]
push ebx
mov ebx, dword [ebp - 0x44]
push ebx
mov ebx, dword [ebp - 0x3c]
push ebx
push edi
mov edi, dword [ebp - 0x1c]
push edi
lea edi, [ebp - 0x9c]
push edi
mov edi, dword [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x40]
push edi
mov edi, dword [ebp - 0x34]
push edi
lea edi, [ebp - 0x5c]
push edi
push ecx
mov ecx, dword [eax + 0x160]
mov eax, dword [esi + 0x30dc]
push ecx
push 0x660ff8
push eax
push edx
lea ecx, [ebp - 0x28]
push str._s__s_HTTP_1.1_r_n_sUser_Agent:__s_r_nHost:__s_s_r_nAccept:___r_n_s_s_s_s_s_s_s_s_s_s_s_s_r_n_s
push ecx
call fcn.0057f8fb
mov ebx, dword [ebp - 0x14]
add esp, 0x54
test bl, 2
mov dword [ebp - 4], 8
je 0x50d766
and ebx, 0xfffffffd
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x14], ebx
call fcn.00586b33
test bl, 1
mov dword [ebp - 4], 7
je 0x50d77a
lea ecx, [ebp - 0x54]
call fcn.00586b33
mov ecx, esi
mov dword [esi + 0x30c8], 1
call fcn.004f80b0
mov eax, dword [ebp - 0x48]
mov ebx, 4
cmp eax, 2
mov dword [esi + 0x5c], ebx
jne 0x50d7e0
mov edx, dword [ebp - 0x28]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00552330
mov edi, eax
mov eax, dword [esi + 0x80]
mov cl, byte [eax + 0x16c]
test cl, cl
je 0x50d842
mov ecx, dword [eax + 0x164]
test ecx, ecx
je 0x50d842
mov edx, dword [eax + 0x168]
push edx
push ecx
mov ecx, esi
call fcn.00552330
jmp 0x50d842
mov eax, dword [ebp + 8]
mov edx, str.send___HEAD
test eax, eax
jne 0x50d7f1
mov edx, str.send___GET
mov eax, dword [ebp - 0x28]
push edx
push 0
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esi + 0x30c4]
push eax
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.004f7460
mov edi, eax
mov eax, dword [esi + 0x80]
mov cl, byte [eax + 0x16c]
test cl, cl
je 0x50d842
mov ecx, dword [eax + 0x164]
test ecx, ecx
je 0x50d842
mov edx, dword [eax + 0x168]
mov eax, dword [esi + 0x30c4]
push 0
push edx
push ecx
push eax
call sub.WSOCK32.dll_send
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.00586b33
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.00586b33
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00586b33
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00586b33
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00586b33
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00586b33
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00586b33
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4