Function at 0x52c320
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 0x5d479c
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 + 0xa0]
mov byte [esi + 0x3190], 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 0x52c3c1
mov cl, byte [eax + 0x177]
test cl, cl
je 0x52c389
mov edi, dword [eax + 0x2a4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x52c3c1
mov bl, 1
jmp 0x52c3c1
mov ecx, dword [esi + 0x3198]
cmp ecx, edx
je 0x52c39b
cmp dword [esi + 0x319c], edx
je 0x52c3c1
lea edx, [esi + 0x3194]
push 0
push edx
lea edx, [esi + 0x319c]
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.00533970
mov eax, dword [ebp + 8]
push 1
test eax, eax
je 0x52c3d2
mov eax, dword [0x692ae0]
push eax
jmp 0x52c3d9
mov ecx, dword [0x692adc]
push ecx
mov ecx, esi
call fcn.005132d0
mov ecx, esi
call fcn.00532070
mov ecx, esi
call fcn.00532ad0
test eax, eax
jne 0x52ccfa
test bl, bl
je 0x52c66a
mov byte [esi + 0x3190], 1
mov edx, dword [0x68d01c]
mov dword [ebp - 0x1c], edx
mov eax, dword [esi + 0xa0]
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 1
mov ecx, dword [eax + 0x2bc]
push ecx
push str._08X
push edx
call fcn.005a6a18
mov eax, dword [esi + 0xa0]
add esp, 0xc
lea edi, [ebp - 0x7f]
mov ecx, dword [eax + 0x2bc]
inc ecx
mov dword [eax + 0x2bc], ecx
mov al, byte [0x691568]
mov byte [ebp - 0x80], al
mov ecx, 8
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xa0]
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.00517e40
mov eax, dword [esi + 0xa0]
add esp, 0x1c
mov cl, byte [eax + 0x15c]
test cl, cl
jne 0x52c4b5
mov cl, byte [eax + 0x170]
mov edi, 0x682764
test cl, cl
je 0x52c4ba
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 + 0x30fc]
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.00517fa0
mov ebx, dword [0x68d01c]
add esp, 0x24
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov edx, dword [esi + 0xa0]
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 0x52c543
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.005a6a18
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 0x52c566
push ebx
lea ecx, [ebp - 0x18]
push str.__opaque__s_
push ecx
call fcn.005a6a18
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 0x52c57c
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x14]
jmp 0x52c59a
push 0x691568
lea ecx, [ebp - 0x3c]
call fcn.005adcbb
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 + 0xa0]
or ecx, 0xffffffff
mov edi, dword [eax + 0x2b4]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x52c5b7
mov ecx, dword [ebp - 0x24]
jmp 0x52c5d3
push 0x691568
lea ecx, [ebp - 0x20]
call fcn.005adcbb
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 + 0xa0]
push edx
lea edx, [ebp - 0xe4]
push edx
mov edx, dword [eax + 0x2a4]
push ecx
mov ecx, dword [esi + 0x30fc]
push ecx
mov ecx, dword [eax + 0x2ac]
push edx
mov edx, dword [eax + 0xc]
push ecx
push edx
lea eax, [esi + 0x3194]
push str.Authorization:_Digest_username__s___realm__s___nonce__s___uri__s____sresponse__s__s_r_n
push eax
call fcn.005a6a18
add esp, 0x24
mov dword [ebp - 4], 4
test bl, 2
je 0x52c62c
and ebx, 0xfffffffd
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
call fcn.005adc4d
test bl, 1
mov dword [ebp - 4], 3
je 0x52c646
and ebx, 0xfffffffe
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x14], ebx
call fcn.005adc4d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.005adc4d
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.005adc4d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005adc4d
mov al, byte [esi + 0x30f3]
xor ebx, ebx
test al, al
je 0x52c68f
lea ecx, [ebp - 0xc0]
push str.Range:_bytes0__r_n
push ecx
call fcn.005920ea
add esp, 8
jmp 0x52c7ab
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
test eax, eax
jg 0x52c6bf
jl 0x52c69f
test ecx, ecx
ja 0x52c6bf
lea edx, [ebp - 0xc0]
push 0x691568
push edx
call fcn.005920ea
add esp, 8
mov byte [esi + 0x30f0], 0
jmp 0x52c7ab
mov edx, dword [esi + 0x30ec]
test edx, edx
je 0x52c6ce
mov edx, dword [edx + 0x68]
jmp 0x52c6d0
xor edx, edx
mov edi, dword [esi + 0x38]
or edi, dword [esi + 0x3c]
je 0x52c769
test edx, edx
je 0x52c769
mov edx, dword [esi + 0xa0]
mov edi, dword [edx + 0x2c0]
test edi, edi
je 0x52c769
mov ecx, esi
call fcn.00532a30
mov edi, eax
mov eax, dword [esi + 0x30ec]
test eax, eax
je 0x52c72d
mov cl, byte [eax + 0x1d8]
test cl, cl
jne 0x52c727
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
sub ecx, 1
sbb eax, 0
cmp eax, edx
jl 0x52c72d
jg 0x52c727
cmp ecx, edi
jbe 0x52c72d
add edi, 1
adc edx, 0
mov al, byte [esi + 0xb0]
test al, al
mov eax, dword [esi + 0x40]
je 0x52c745
mov ecx, dword [esi + 0x44]
add eax, 0x30
adc ecx, 0
jmp 0x52c748
mov ecx, dword [esi + 0x44]
push edx
push edi
push ecx
push eax
lea eax, [ebp - 0xc0]
push str.Range:_bytes_I64d__I64d_r_n
push eax
call fcn.005920ea
add esp, 0x18
mov byte [esi + 0x3145], 1
jmp 0x52c7ab
mov edx, dword [esi + 0xa0]
mov edi, dword [edx + 0x2c0]
test edi, edi
jne 0x52c77e
mov ebx, 1
mov dl, byte [esi + 0xb0]
test dl, dl
je 0x52c78e
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.005920ea
add esp, 0x10
mov byte [esi + 0x3145], 0
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x52c7ba
mov ecx, dword [eax + 0xc]
jmp 0x52c7c3
mov ecx, dword [esi + 0xa0]
mov ecx, dword [ecx + 0x14]
test eax, eax
je 0x52c7cc
mov eax, dword [eax + 0x10]
jmp 0x52c7d5
mov edx, dword [esi + 0xa0]
mov eax, dword [edx + 0x24]
cmp ecx, 0x50
mov dword [ebp - 0x20], eax
jne 0x52c836
cmp eax, 1
je 0x52c843
push ecx
lea ecx, [ebp - 0x5c]
push str.:_ld
push ecx
call fcn.005920ea
add esp, 0xc
mov edx, dword [0x68d01c]
mov dword [ebp - 0x2c], edx
mov eax, dword [esi + 0xa0]
mov byte [ebp - 4], 6
mov cl, byte [eax + 0x2dc]
test cl, cl
je 0x52c81b
mov cl, byte [eax + 0x2de]
test cl, cl
jne 0x52c856
mov eax, dword [eax + 0x18]
test eax, eax
je 0x52c856
push eax
lea eax, [ebp - 0x2c]
push str.Referer:__s_r_n
push eax
call fcn.005a6a18
add esp, 0xc
jmp 0x52c863
cmp ecx, 0x1bb
jne 0x52c7e2
cmp eax, 2
jne 0x52c7e2
lea eax, [ebp - 0x5c]
push 0x691568
push eax
call fcn.005920ea
add esp, 8
jmp 0x52c7f4
push 0x691568
lea ecx, [ebp - 0x2c]
call fcn.005addd6
push 0x691568
lea ecx, [ebp - 0x40]
call fcn.005adcbb
mov eax, dword [esi + 0xa0]
mov byte [ebp - 4], 7
mov cl, byte [eax + 0x2e1]
test cl, cl
je 0x52c8da
mov edi, dword [eax + 0x20]
test edi, edi
je 0x52c8da
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jle 0x52c8da
mov edx, dword [esi + 0xa0]
mov eax, dword [edx + 0x20]
mov dl, byte [eax + ecx - 1]
cmp dl, 0xa
lea eax, [eax + ecx - 1]
je 0x52c8b5
cmp dl, 0xd
jne 0x52c8ba
mov byte [eax], 0
jmp 0x52c894
cmp ecx, 1
jle 0x52c8da
mov ecx, dword [esi + 0xa0]
lea eax, [ebp - 0x40]
mov edx, dword [ecx + 0x20]
push edx
push str.If_Modified_Since:__s_r_n
push eax
call fcn.005a6a18
add esp, 0xc
mov ecx, dword [0x68d01c]
mov dword [ebp - 0x30], ecx
mov edx, dword [esi + 0xa0]
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 0x52c919
mov edx, dword [edx + 0xd0]
lea eax, [ebp - 0x30]
push edx
push 0x665f68
push eax
call fcn.005a6a18
add esp, 0xc
jmp 0x52c92a
lea ecx, [ebp - 0x30]
push str.application_x_www_form_urlencoded
push ecx
call fcn.005a6a18
add esp, 8
mov edx, dword [0x68d01c]
mov dword [ebp - 0x38], edx
mov eax, dword [esi + 0xa0]
mov byte [ebp - 4], 9
mov cl, byte [eax + 0x15c]
test cl, cl
je 0x52c966
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.005a6a18
add esp, 0x10
mov eax, dword [esi + 0xa0]
mov cl, byte [eax + 0x170]
test cl, cl
je 0x52c992
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.005a6a18
add esp, 0x10
mov eax, dword [0x68d01c]
mov dword [ebp - 0x48], eax
mov edx, dword [esi + 0xa0]
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 0x52c9ce
mov ecx, dword [edx + 0x2ec]
lea edx, [ebp - 0x48]
push ecx
push str.Cookie2:__s_r_n
push edx
call fcn.005a6a18
add esp, 0xc
mov eax, dword [0x68d01c]
mov dword [ebp - 0x44], eax
mov edx, dword [esi + 0xa0]
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 0x52ca0a
mov ecx, dword [edx + 0x2f0]
lea edx, [ebp - 0x44]
push ecx
push str.Accept_Language:__s_r_n
push edx
call fcn.005a6a18
add esp, 0xc
mov eax, dword [0x68d01c]
mov dword [ebp - 0x34], eax
test ebx, ebx
mov byte [ebp - 4], 0xc
je 0x52ca28
mov dword [ebp - 0x28], str.Cache_Control:_no_cache_r_nPragma:_no_cache_r_n
mov ebx, 0x691568
jmp 0x52ca30
mov ebx, 0x691568
mov dword [ebp - 0x28], ebx
mov eax, dword [esi + 0x3100]
mov dword [ebp - 0x24], 0x666c80
test eax, eax
jne 0x52ca44
mov dword [ebp - 0x24], ebx
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x52ca4e
mov dword [ebp - 0x1c], ebx
test eax, eax
mov dword [ebp - 0x18], str.Cookie:
jne 0x52ca5c
mov dword [ebp - 0x18], ebx
mov ecx, dword [esi + 0xa0]
mov al, byte [ecx + 0x176]
test al, al
je 0x52ca87
mov edx, dword [esi + 0x310c]
lea ecx, [ebp - 0x54]
push edx
call fcn.005adcbb
or dword [ebp - 0x14], 4
mov edi, dword [eax]
mov byte [ebp - 4], 0xd
jmp 0x52ca8d
mov edi, dword [esi + 0x3194]
mov eax, dword [esi + 0x3194]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x52cac5
mov ecx, dword [esi + 0xa0]
mov dl, byte [ecx + 0x176]
test dl, dl
sete al
test al, al
je 0x52cac5
mov edx, dword [esi + 0x3198]
mov dword [ebp - 0x3c], str.Connection:_Keep_Alive_r_n
test edx, edx
sete al
test al, al
jne 0x52cac8
mov dword [ebp - 0x3c], ebx
mov eax, dword [esi + 0xa4]
test eax, eax
jne 0x52caee
mov edx, dword [esi + 0xa0]
lea ecx, [ebp - 0x50]
mov eax, dword [edx]
push eax
call fcn.005adcbb
or dword [ebp - 0x14], 8
mov dword [ebp - 4], 0xe
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [esi + 0xa0]
test ecx, ecx
je 0x52cb04
mov ecx, str.HEAD
jmp 0x52cb22
mov cl, byte [eax + 0x15c]
test cl, cl
jne 0x52cb1d
mov cl, byte [eax + 0x170]
test cl, cl
mov ecx, 0x682764
je 0x52cb22
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 + 0x30fc]
push edx
push 0x691568
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.005a6a18
mov ebx, dword [ebp - 0x14]
add esp, 0x54
test bl, 8
mov dword [ebp - 4], 0xd
je 0x52cba0
and ebx, 0xfffffff7
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x14], ebx
call fcn.005adc4d
test bl, 4
mov dword [ebp - 4], 0xc
je 0x52cbb4
lea ecx, [ebp - 0x54]
call fcn.005adc4d
mov ecx, esi
mov dword [esi + 0x30e8], 1
call fcn.00514da0
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x7c], 4
cmp eax, 2
jne 0x52cc19
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.00577f20
mov edi, eax
mov eax, dword [esi + 0xa0]
mov cl, byte [eax + 0x170]
test cl, cl
je 0x52cc7b
mov ecx, dword [eax + 0x168]
test ecx, ecx
je 0x52cc7b
mov edx, dword [eax + 0x16c]
push edx
push ecx
mov ecx, esi
call fcn.00577f20
jmp 0x52cc7b
mov eax, dword [ebp + 8]
mov edx, str.send___HEAD
test eax, eax
jne 0x52cc2a
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 + 0x30e4]
push eax
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.00513450
mov edi, eax
mov eax, dword [esi + 0xa0]
mov cl, byte [eax + 0x170]
test cl, cl
je 0x52cc7b
mov ecx, dword [eax + 0x168]
test ecx, ecx
je 0x52cc7b
mov edx, dword [eax + 0x16c]
mov eax, dword [esi + 0x30e4]
push 0
push edx
push ecx
push eax
call sub.WSOCK32.dll_send
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.005adc4d
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call fcn.005adc4d
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 9
call fcn.005adc4d
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 8
call fcn.005adc4d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
call fcn.005adc4d
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.005adc4d
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.005adc4d
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