Function at 0x4d9d20
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 0x5596c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
cmp byte [eax + 0x1eb], bl
jne 0x4d9d90
mov ecx, dword [esi + 0x2ef8]
cmp ecx, ebx
je 0x4d9d6b
cmp dword [esi + 0x2efc], ebx
je 0x4d9d90
lea edx, [esi + 0x2ef4]
push ebx
push edx
lea edx, [esi + 0x2efc]
push edx
mov edx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0xc]
push edx
add eax, 0x214
push ecx
push eax
mov ecx, esi
call fcn.004de400
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x4d9d9f
mov eax, dword [0x5bb57c]
push eax
jmp 0x4d9da6
mov ecx, dword [0x5bb578]
push ecx
mov ecx, esi
call fcn.004c73d0
mov ecx, esi
call fcn.004dd340
mov ecx, esi
call fcn.004dd6f0
cmp eax, ebx
jne 0x4da252
cmp dword [esi + 0x2e70], 2
je 0x4d9ea4
cmp edi, ebx
jne 0x4d9ea4
cmp byte [esi + 0x2e80], bl
jne 0x4d9ea4
mov eax, dword [esi + 0x2e7c]
cmp eax, ebx
je 0x4d9df3
mov eax, dword [eax + 0x5c]
jmp 0x4d9df5
xor eax, eax
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
or edx, ecx
je 0x4d9e66
cmp eax, ebx
je 0x4d9e66
mov eax, dword [esi + 0x7c]
cmp dword [eax + 0x318], ebx
je 0x4d9e66
mov ecx, esi
call fcn.004dd660
mov edi, eax
mov eax, dword [esi + 0x2e7c]
cmp eax, ebx
je 0x4d9e2e
cmp byte [eax + 0x298], bl
je 0x4d9e2e
add edi, 1
adc edx, ebx
mov al, byte [esi + 0x88]
cmp al, bl
mov eax, dword [esi + 0x20]
je 0x4d9e45
mov ecx, dword [esi + 0x24]
add eax, 0x30
adc ecx, ebx
jmp 0x4d9e48
mov ecx, dword [esi + 0x24]
push edx
push edi
push ecx
push eax
lea ecx, [ebp - 0x80]
push str.Range:_bytes_I64d__I64d_r_n
push ecx
call fcn.0051d0e8
add esp, 0x18
mov byte [esi + 0x2ef1], 1
jmp 0x4d9ebb
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
cmp eax, ebx
jl 0x4d9e85
jg 0x4d9e76
cmp ecx, ebx
jbe 0x4d9e85
cmp byte [esi + 0x88], bl
je 0x4d9e89
add ecx, 0x30
adc eax, ebx
jmp 0x4d9e89
xor ecx, ecx
xor eax, eax
push eax
push ecx
lea edx, [ebp - 0x80]
push str.Range:_bytes_I64d__r_n
push edx
call fcn.0051d0e8
add esp, 0x10
mov byte [esi + 0x2ef1], bl
jmp 0x4d9ebb
lea eax, [ebp - 0x80]
push 0x5ba440
push eax
call fcn.0051d0e8
add esp, 8
mov byte [esi + 0x2e80], bl
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax + 0x14]
cmp ecx, 0x50
jne 0x4d9ecc
cmp dword [eax + 0x24], 1
je 0x4d9eda
cmp ecx, 0x1bb
jne 0x4d9eed
cmp dword [eax + 0x24], 2
jne 0x4d9eed
lea ecx, [ebp - 0x40]
push 0x5ba440
push ecx
call fcn.0051d0e8
add esp, 8
jmp 0x4d9eff
push ecx
lea edx, [ebp - 0x40]
push str.:_ld
push edx
call fcn.0051d0e8
add esp, 0xc
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x7c]
mov byte [ebp - 4], 1
cmp byte [eax + 0x329], bl
je 0x4d9f1e
cmp byte [eax + 0x32b], bl
jne 0x4d9f39
mov eax, dword [eax + 0x18]
cmp eax, ebx
je 0x4d9f39
push eax
lea ecx, [ebp - 0x14]
push str.Referer:__s_r_n
push ecx
call fcn.0053091a
add esp, 0xc
jmp 0x4d9f46
push 0x5ba440
lea ecx, [ebp - 0x14]
call fcn.00537c8d
push 0x5ba440
lea ecx, [ebp - 0x24]
call fcn.00537b72
mov eax, dword [esi + 0x7c]
mov byte [ebp - 4], 2
cmp byte [eax + 0x32e], bl
je 0x4d9fb1
mov edi, dword [eax + 0x20]
cmp edi, ebx
je 0x4d9fb1
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jle 0x4d9fb1
mov edx, dword [esi + 0x7c]
mov eax, dword [edx + 0x20]
mov dl, byte [eax + ecx - 1]
cmp dl, 0xa
lea eax, [eax + ecx - 1]
je 0x4d9f90
cmp dl, 0xd
jne 0x4d9f94
mov byte [eax], bl
jmp 0x4d9f72
cmp ecx, 1
jle 0x4d9fb1
mov ecx, dword [esi + 0x7c]
lea eax, [ebp - 0x24]
mov edx, dword [ecx + 0x20]
push edx
push str.If_Modified_Since:__s_r_n
push eax
call fcn.0053091a
add esp, 0xc
mov ecx, dword [0x5b5ecc]
mov dword [ebp - 0x1c], ecx
mov eax, dword [esi + 0x7c]
mov byte [ebp - 4], 3
cmp byte [eax + 0x1d7], bl
je 0x4d9fe4
mov edx, dword [eax + 0x1d8]
mov eax, dword [edx - 8]
push eax
lea eax, [ebp - 0x1c]
push str.Content_Type:_application_x_www_form_urlencoded_r_nContent_Length:__d_r_n
push eax
call fcn.0053091a
add esp, 0xc
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x1e8], bl
je 0x4da007
mov ecx, dword [eax + 0x1e4]
lea edx, [ebp - 0x1c]
push ecx
push str.Content_Type:_application_x_www_form_urlencoded_r_nContent_Length:__d_r_n
push edx
call fcn.0053091a
add esp, 0xc
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x2e8c]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x4da02b
mov dword [ebp - 0x28], 0x59890c
mov ecx, 0x5ba440
jmp 0x4da033
mov ecx, 0x5ba440
mov dword [ebp - 0x28], ecx
cmp eax, ebx
mov dword [ebp - 0x2c], eax
jne 0x4da03d
mov dword [ebp - 0x2c], ecx
cmp eax, ebx
mov dword [ebp - 0x30], str.Cookie:
jne 0x4da04b
mov dword [ebp - 0x30], ecx
mov ecx, dword [esi + 0x7c]
cmp byte [ecx + 0x1eb], bl
je 0x4da071
mov edx, dword [esi + 0x2e90]
lea ecx, [ebp - 0x34]
push edx
call fcn.00537b72
or dword [ebp - 0x20], 1
mov edi, dword [eax]
mov byte [ebp - 4], 5
jmp 0x4da077
mov edi, dword [esi + 0x2ef4]
mov eax, dword [esi + 0x2ef4]
cmp dword [eax - 8], ebx
je 0x4da09c
mov ecx, dword [esi + 0x7c]
cmp byte [ecx + 0x1eb], bl
jne 0x4da09c
mov eax, dword [esi + 0x2ef8]
mov edx, str.Connection:_Keep_Alive_r_n
cmp eax, ebx
je 0x4da0a1
mov edx, 0x5ba440
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x7c]
cmp ecx, ebx
je 0x4da0b2
mov ecx, str.HEAD
jmp 0x4da0ce
cmp byte [eax + 0x1d7], bl
jne 0x4da0c9
mov cl, byte [eax + 0x1e8]
cmp cl, bl
mov ecx, 0x5b085c
je 0x4da0ce
mov ecx, str.POST
mov ebx, dword [eax + 0x1d8]
push ebx
mov ebx, dword [ebp - 0x1c]
push ebx
mov ebx, dword [ebp - 0x28]
push ebx
mov ebx, dword [ebp - 0x2c]
push ebx
mov ebx, dword [ebp - 0x30]
push ebx
push edi
mov edi, dword [ebp - 0x14]
push edi
lea edi, [ebp - 0x80]
push edi
mov edi, dword [ebp - 0x24]
push edi
push edx
lea edx, [ebp - 0x40]
push edx
mov edx, dword [eax]
mov eax, dword [eax + 0x1dc]
push edx
mov edx, dword [esi + 0x2e88]
push eax
push 0x5ba440
push edx
push ecx
lea eax, [ebp - 0x18]
push str._s__s_HTTP_1.1_r_nAccept:___r_n_sUser_Agent:__s_r_nHost:__s_s_r_n_s_s_s_s_s_s_s_s_s_r_n_s
push eax
call fcn.0053091a
mov al, byte [ebp - 0x20]
add esp, 0x48
mov edi, 4
test al, 1
mov dword [ebp - 4], edi
je 0x4da136
lea ecx, [ebp - 0x34]
call fcn.00537b04
mov ecx, esi
mov dword [esi + 0x2e78], 1
call fcn.004c7fd0
mov ecx, dword [esi + 0x7c]
mov dword [esi + 0x5c], edi
mov ebx, 2
cmp dword [ecx + 0x24], ebx
jne 0x4da199
mov edx, dword [ebp - 0x18]
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.00506e60
mov edi, eax
mov eax, dword [esi + 0x7c]
mov cl, byte [eax + 0x1e8]
test cl, cl
je 0x4da1f8
mov ecx, dword [eax + 0x1e0]
test ecx, ecx
je 0x4da1f8
mov edx, dword [eax + 0x1e4]
push edx
push ecx
mov ecx, esi
call fcn.00506e60
jmp 0x4da1f8
mov eax, dword [ebp + 8]
mov edx, str.send___HEAD
test eax, eax
jne 0x4da1aa
mov edx, str.send___GET
mov eax, dword [ebp - 0x18]
push edx
push 0
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esi + 0x2e74]
push eax
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.004c7530
mov edi, eax
mov eax, dword [esi + 0x7c]
mov cl, byte [eax + 0x1e8]
test cl, cl
je 0x4da1f8
mov ecx, dword [eax + 0x1e0]
test ecx, ecx
je 0x4da1f8
mov edx, dword [eax + 0x1e4]
mov eax, dword [esi + 0x2e74]
push 0
push edx
push ecx
push eax
call sub.WSOCK32.dll_send
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00537b04
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00537b04
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
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