Function at 0x525e30
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 0x5cbedc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
push ebx
push esi
mov esi, ecx
xor bl, bl
push edi
xor edx, edx
mov eax, dword [esi + 0x80]
mov byte [esi + 0x3170], bl
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x4c], esi
mov cl, byte [eax + 0x176]
mov dword [ebp - 0x14], edx
test cl, cl
mov dword [ebp - 4], edx
jne 0x525ed1
mov cl, byte [eax + 0x177]
test cl, cl
je 0x525e99
mov edi, dword [eax + 0x2a4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x525ed1
mov bl, 1
jmp 0x525ed1
mov ecx, dword [esi + 0x3178]
cmp ecx, edx
je 0x525eab
cmp dword [esi + 0x317c], edx
je 0x525ed1
lea edx, [esi + 0x3174]
push 0
push edx
lea edx, [esi + 0x317c]
push edx
mov edx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0xc]
push edx
add eax, 0x1a0
push ecx
push eax
mov ecx, esi
call fcn.0052cb90
mov eax, dword [ebp + 8]
push 1
test eax, eax
je 0x525ee2
mov eax, dword [0x688a98]
push eax
jmp 0x525ee9
mov ecx, dword [0x688a94]
push ecx
mov ecx, esi
call fcn.0050ee60
mov ecx, esi
call fcn.0052b690
mov ecx, esi
call fcn.0052bd00
test eax, eax
jne 0x52680a
test bl, bl
je 0x52617a
mov byte [esi + 0x3170], 1
mov edx, dword [0x682f9c]
mov dword [ebp - 0x1c], edx
mov eax, dword [esi + 0x80]
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 1
mov ecx, dword [eax + 0x2bc]
push ecx
push str._08X
push edx
call fcn.0059e618
mov eax, dword [esi + 0x80]
add esp, 0xc
lea edi, [ebp - 0x7f]
mov ecx, dword [eax + 0x2bc]
inc ecx
mov dword [eax + 0x2bc], ecx
mov al, byte [0x6874e8]
mov byte [ebp - 0x80], al
mov ecx, 8
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x80]
mov ebx, dword [eax + 0x2b0]
mov ecx, dword [eax + 0x2a8]
mov edx, dword [eax + 0x2a4]
mov edi, dword [eax + 0x2ac]
mov dword [ebp - 0x20], ebx
lea ebx, [ebp - 0x108]
push ebx
push ecx
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x20]
push ecx
push edi
push edx
push eax
call fcn.00512c80
mov eax, dword [esi + 0x80]
add esp, 0x1c
mov cl, byte [eax + 0x15c]
test cl, cl
jne 0x525fc5
mov cl, byte [eax + 0x170]
mov edi, 0x67865c
test cl, cl
je 0x525fca
mov edi, str.POST
mov ecx, dword [eax + 0x2b4]
lea ebx, [ebp - 0xe4]
mov edx, dword [eax + 0x2a8]
push ebx
lea ebx, [ebp - 0x80]
mov eax, dword [eax + 0x2a4]
push ebx
mov ebx, dword [esi + 0x30dc]
push ebx
push edi
push ecx
mov ecx, dword [ebp - 0x1c]
push edx
push ecx
lea edx, [ebp - 0x108]
push eax
push edx
call fcn.00512de0
mov ebx, dword [0x682f9c]
add esp, 0x24
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov edx, dword [esi + 0x80]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 4], 3
mov edi, dword [edx + 0x2b4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x526053
mov eax, dword [edx + 0x2a8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x2b4]
push eax
push ecx
push edx
lea eax, [ebp - 0x24]
push str.qop_s__nc_s__cnonce__s__
push eax
call fcn.0059e618
mov ebx, dword [ebp - 0x18]
add esp, 0x14
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x526076
push ebx
lea ecx, [ebp - 0x18]
push str.__opaque__s_
push ecx
call fcn.0059e618
mov ebx, dword [ebp - 0x18]
add esp, 0xc
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x52608c
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x14]
jmp 0x5260aa
push 0x6874e8
lea ecx, [ebp - 0x3c]
call fcn.005a58bb
mov ebx, 1
mov dword [ebp - 0x14], ebx
mov edx, dword [eax]
mov byte [ebp - 4], 4
mov dword [ebp - 0x28], edx
mov eax, dword [esi + 0x80]
or ecx, 0xffffffff
mov edi, dword [eax + 0x2b4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5260c7
mov ecx, dword [ebp - 0x24]
jmp 0x5260e3
push 0x6874e8
lea ecx, [ebp - 0x20]
call fcn.005a58bb
or ebx, 2
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x80]
push edx
lea edx, [ebp - 0xe4]
push edx
mov edx, dword [eax + 0x2a4]
push ecx
mov ecx, dword [esi + 0x30dc]
push ecx
mov ecx, dword [eax + 0x2ac]
push edx
mov edx, dword [eax + 0xc]
push ecx
push edx
lea eax, [esi + 0x3174]
push str.Authorization:_Digest_username__s___realm__s___nonce__s___uri__s____sresponse__s__s_r_n
push eax
call fcn.0059e618
add esp, 0x24
mov dword [ebp - 4], 4
test bl, 2
je 0x52613c
and ebx, 0xfffffffd
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
call fcn.005a584d
test bl, 1
mov dword [ebp - 4], 3
je 0x526156
and ebx, 0xfffffffe
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x14], ebx
call fcn.005a584d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.005a584d
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.005a584d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005a584d
mov al, byte [esi + 0x30d3]
xor ebx, ebx
test al, al
je 0x52619f
lea ecx, [ebp - 0xc0]
push str.Range:_bytes0__r_n
push ecx
call fcn.00589e0a
add esp, 8
jmp 0x5262bb
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
test eax, eax
jg 0x5261cf
jl 0x5261af
test ecx, ecx
ja 0x5261cf
lea edx, [ebp - 0xc0]
push 0x6874e8
push edx
call fcn.00589e0a
add esp, 8
mov byte [esi + 0x30d0], 0
jmp 0x5262bb
mov edx, dword [esi + 0x30cc]
test edx, edx
je 0x5261de
mov edx, dword [edx + 0x68]
jmp 0x5261e0
xor edx, edx
mov edi, dword [esi + 0x18]
or edi, dword [esi + 0x1c]
je 0x526279
test edx, edx
je 0x526279
mov edx, dword [esi + 0x80]
mov edi, dword [edx + 0x2c0]
test edi, edi
je 0x526279
mov ecx, esi
call fcn.0052bc70
mov edi, eax
mov eax, dword [esi + 0x30cc]
test eax, eax
je 0x52623d
mov cl, byte [eax + 0x1d8]
test cl, cl
jne 0x526237
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
sub ecx, 1
sbb eax, 0
cmp eax, edx
jl 0x52623d
jg 0x526237
cmp ecx, edi
jbe 0x52623d
add edi, 1
adc edx, 0
mov al, byte [esi + 0x90]
test al, al
mov eax, dword [esi + 0x20]
je 0x526255
mov ecx, dword [esi + 0x24]
add eax, 0x30
adc ecx, 0
jmp 0x526258
mov ecx, dword [esi + 0x24]
push edx
push edi
push ecx
push eax
lea eax, [ebp - 0xc0]
push str.Range:_bytes_I64d__I64d_r_n
push eax
call fcn.00589e0a
add esp, 0x18
mov byte [esi + 0x3125], 1
jmp 0x5262bb
mov edx, dword [esi + 0x80]
mov edi, dword [edx + 0x2c0]
test edi, edi
jne 0x52628e
mov ebx, 1
mov dl, byte [esi + 0x90]
test dl, dl
je 0x52629e
add ecx, 0x30
adc eax, 0
push eax
push ecx
lea eax, [ebp - 0xc0]
push str.Range:_bytes_I64d__r_n
push eax
call fcn.00589e0a
add esp, 0x10
mov byte [esi + 0x3125], 0
mov eax, dword [esi + 0x84]
test eax, eax
je 0x5262ca
mov ecx, dword [eax + 0xc]
jmp 0x5262d3
mov ecx, dword [esi + 0x80]
mov ecx, dword [ecx + 0x14]
test eax, eax
je 0x5262dc
mov eax, dword [eax + 0x10]
jmp 0x5262e5
mov edx, dword [esi + 0x80]
mov eax, dword [edx + 0x24]
cmp ecx, 0x50
mov dword [ebp - 0x20], eax
jne 0x526346
cmp eax, 1
je 0x526353
push ecx
lea ecx, [ebp - 0x5c]
push str.:_ld
push ecx
call fcn.00589e0a
add esp, 0xc
mov edx, dword [0x682f9c]
mov dword [ebp - 0x2c], edx
mov eax, dword [esi + 0x80]
mov byte [ebp - 4], 6
mov cl, byte [eax + 0x2dc]
test cl, cl
je 0x52632b
mov cl, byte [eax + 0x2de]
test cl, cl
jne 0x526366
mov eax, dword [eax + 0x18]
test eax, eax
je 0x526366
push eax
lea eax, [ebp - 0x2c]
push str.Referer:__s_r_n
push eax
call fcn.0059e618
add esp, 0xc
jmp 0x526373
cmp ecx, 0x1bb
jne 0x5262f2
cmp eax, 2
jne 0x5262f2
lea eax, [ebp - 0x5c]
push 0x6874e8
push eax
call fcn.00589e0a
add esp, 8
jmp 0x526304
push 0x6874e8
lea ecx, [ebp - 0x2c]
call fcn.005a59d6
push 0x6874e8
lea ecx, [ebp - 0x40]
call fcn.005a58bb
mov eax, dword [esi + 0x80]
mov byte [ebp - 4], 7
mov cl, byte [eax + 0x2e1]
test cl, cl
je 0x5263ea
mov edi, dword [eax + 0x20]
test edi, edi
je 0x5263ea
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jle 0x5263ea
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 0x5263c5
cmp dl, 0xd
jne 0x5263ca
mov byte [eax], 0
jmp 0x5263a4
cmp ecx, 1
jle 0x5263ea
mov ecx, dword [esi + 0x80]
lea eax, [ebp - 0x40]
mov edx, dword [ecx + 0x20]
push edx
push str.If_Modified_Since:__s_r_n
push eax
call fcn.0059e618
add esp, 0xc
mov ecx, dword [0x682f9c]
mov dword [ebp - 0x30], ecx
mov edx, dword [esi + 0x80]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 4], 8
mov edi, dword [edx + 0xd0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x526429
mov edx, dword [edx + 0xd0]
lea eax, [ebp - 0x30]
push edx
push 0x65bf6c
push eax
call fcn.0059e618
add esp, 0xc
jmp 0x52643a
lea ecx, [ebp - 0x30]
push str.application_x_www_form_urlencoded
push ecx
call fcn.0059e618
add esp, 8
mov edx, dword [0x682f9c]
mov dword [ebp - 0x38], edx
mov eax, dword [esi + 0x80]
mov byte [ebp - 4], 9
mov cl, byte [eax + 0x15c]
test cl, cl
je 0x526476
mov eax, dword [eax + 0x160]
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x38]
mov eax, dword [eax - 8]
push eax
push ecx
push str.Content_Type:__s_r_nContent_Length:__d_r_n
push edx
call fcn.0059e618
add esp, 0x10
mov eax, dword [esi + 0x80]
mov cl, byte [eax + 0x170]
test cl, cl
je 0x5264a2
mov eax, dword [eax + 0x16c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
lea edx, [ebp - 0x38]
push str.Content_Type:__s_r_nContent_Length:__d_r_n
push edx
call fcn.0059e618
add esp, 0x10
mov eax, dword [0x682f9c]
mov dword [ebp - 0x48], eax
mov edx, dword [esi + 0x80]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 4], 0xa
mov edi, dword [edx + 0x2ec]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5264de
mov ecx, dword [edx + 0x2ec]
lea edx, [ebp - 0x48]
push ecx
push str.Cookie2:__s_r_n
push edx
call fcn.0059e618
add esp, 0xc
mov eax, dword [0x682f9c]
mov dword [ebp - 0x44], eax
mov edx, dword [esi + 0x80]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 4], 0xb
mov edi, dword [edx + 0x2f0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x52651a
mov ecx, dword [edx + 0x2f0]
lea edx, [ebp - 0x44]
push ecx
push str.Accept_Language:__s_r_n
push edx
call fcn.0059e618
add esp, 0xc
mov eax, dword [0x682f9c]
mov dword [ebp - 0x34], eax
test ebx, ebx
mov byte [ebp - 4], 0xc
je 0x526538
mov dword [ebp - 0x28], str.Cache_Control:_no_cache_r_nPragma:_no_cache_r_n
mov ebx, 0x6874e8
jmp 0x526540
mov ebx, 0x6874e8
mov dword [ebp - 0x28], ebx
mov eax, dword [esi + 0x30e0]
mov dword [ebp - 0x24], 0x65cb20
test eax, eax
jne 0x526554
mov dword [ebp - 0x24], ebx
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x52655e
mov dword [ebp - 0x1c], ebx
test eax, eax
mov dword [ebp - 0x18], str.Cookie:
jne 0x52656c
mov dword [ebp - 0x18], ebx
mov ecx, dword [esi + 0x80]
mov al, byte [ecx + 0x176]
test al, al
je 0x526597
mov edx, dword [esi + 0x30ec]
lea ecx, [ebp - 0x54]
push edx
call fcn.005a58bb
or dword [ebp - 0x14], 4
mov edi, dword [eax]
mov byte [ebp - 4], 0xd
jmp 0x52659d
mov edi, dword [esi + 0x3174]
mov eax, dword [esi + 0x3174]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5265d5
mov ecx, dword [esi + 0x80]
mov dl, byte [ecx + 0x176]
test dl, dl
sete al
test al, al
je 0x5265d5
mov edx, dword [esi + 0x3178]
mov dword [ebp - 0x3c], str.Connection:_Keep_Alive_r_n
test edx, edx
sete al
test al, al
jne 0x5265d8
mov dword [ebp - 0x3c], ebx
mov eax, dword [esi + 0x84]
test eax, eax
jne 0x5265fe
mov edx, dword [esi + 0x80]
lea ecx, [ebp - 0x50]
mov eax, dword [edx]
push eax
call fcn.005a58bb
or dword [ebp - 0x14], 8
mov dword [ebp - 4], 0xe
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [esi + 0x80]
test ecx, ecx
je 0x526614
mov ecx, str.HEAD
jmp 0x526632
mov cl, byte [eax + 0x15c]
test cl, cl
jne 0x52662d
mov cl, byte [eax + 0x170]
test cl, cl
mov ecx, 0x67865c
je 0x526632
mov ecx, str.POST
mov ebx, dword [eax + 0x160]
push ebx
mov ebx, dword [ebp - 0x28]
push ebx
mov ebx, dword [ebp - 0x38]
push ebx
mov ebx, dword [ebp - 0x48]
push ebx
mov ebx, dword [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x1c]
push ebx
mov ebx, dword [ebp - 0x18]
push ebx
push edi
mov edi, dword [ebp - 0x2c]
push edi
lea edi, [ebp - 0xc0]
push edi
mov edi, dword [ebp - 0x40]
push edi
mov edi, dword [ebp - 0x3c]
push edi
mov edi, dword [ebp - 0x44]
push edi
lea edi, [ebp - 0x5c]
push edi
push edx
mov edx, dword [eax + 0x164]
mov eax, dword [esi + 0x30dc]
push edx
push 0x6874e8
push eax
push ecx
lea ecx, [ebp - 0x34]
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.0059e618
mov ebx, dword [ebp - 0x14]
add esp, 0x54
test bl, 8
mov dword [ebp - 4], 0xd
je 0x5266b0
and ebx, 0xfffffff7
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x14], ebx
call fcn.005a584d
test bl, 4
mov dword [ebp - 4], 0xc
je 0x5266c4
lea ecx, [ebp - 0x54]
call fcn.005a584d
mov ecx, esi
mov dword [esi + 0x30c8], 1
call fcn.0050fc20
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x5c], 4
cmp eax, 2
jne 0x526729
mov edx, dword [ebp - 0x34]
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.0056fc70
mov edi, eax
mov eax, dword [esi + 0x80]
mov cl, byte [eax + 0x170]
test cl, cl
je 0x52678b
mov ecx, dword [eax + 0x168]
test ecx, ecx
je 0x52678b
mov edx, dword [eax + 0x16c]
push edx
push ecx
mov ecx, esi
call fcn.0056fc70
jmp 0x52678b
mov eax, dword [ebp + 8]
mov edx, str.send___HEAD
test eax, eax
jne 0x52673a
mov edx, str.send___GET
mov eax, dword [ebp - 0x34]
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.0050efd0
mov edi, eax
mov eax, dword [esi + 0x80]
mov cl, byte [eax + 0x170]
test cl, cl
je 0x52678b
mov ecx, dword [eax + 0x168]
test ecx, ecx
je 0x52678b
mov edx, dword [eax + 0x16c]
mov eax, dword [esi + 0x30c4]
push 0
push edx
push ecx
push eax
call sub.WSOCK32.dll_send
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.005a584d
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call fcn.005a584d
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 9
call fcn.005a584d
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.005a584d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
call fcn.005a584d
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.005a584d
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.005a584d
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