Function at 0x4882c0
Capabilities:
Check http status code
Make an http request with a cookie
Read http header
Receive http response
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b817b
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4e5070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xac], edi
mov esi, dword [ebp + 8]
xor ecx, ecx
push 0xffffffffffffffff
mov word [ebp - 0x98], cx
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x84], 7
push dword [esi + 0xc8]
lea eax, [esi + 0x98]
mov dword [ebp - 0x88], 0
push eax
call fcn.004037e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
push 8
xor eax, eax
mov dword [ebp - 0x54], 7
push str.Cookie:
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
call fcn.004036e0
mov byte [ebp - 4], 1
lea eax, [esi + 0xb0]
push 0xffffffffffffffff
push dword [esi + 0xcc]
xor ecx, ecx
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], cx
lea ecx, [ebp - 0x80]
push eax
mov dword [ebp - 0x70], 0
call fcn.004037e0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x68]
call fcn.0040a6e0
cmp dword [ebp - 0x84], 8
lea eax, [ebp - 0x98]
push 0x1000000
push dword [ebp - 0x88]
cmovae eax, dword [ebp - 0x98]
push eax
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4883d2
call ebx
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
push 0x1000000
push dword [ebp - 0x58]
cmovae eax, dword [ebp - 0x68]
push eax
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x4883f5
call ebx
mov ecx, dword [esi + 0xd4]
mov eax, dword [esi + 0xd8]
push edi
add eax, ecx
mov dword [ebp - 0xa4], 0
push eax
push ecx
push dword [esi + 0xd0]
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x488456
call ebx
mov edi, eax
test edi, edi
je 0x488450
mov ecx, dword [esi + 0xec]
test ecx, ecx
je 0x4887bf
mov eax, dword [ecx]
push esi
push 0
push edi
call dword [eax + 4]
jmp 0x4887bf
mov edi, dword [ebp - 0xac]
cmp dword [esi + 0xd8], 0
je 0x4884d3
cmp dword [esi + 0xec], 0
je 0x4884d3
nop dword [eax + eax]
mov ecx, dword [esi + 0xec]
lea edx, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xb0], 0
push edx
mov eax, dword [ecx]
push 0
push esi
mov eax, dword [eax + 8]
call eax
mov ecx, dword [ebp - 0x9c]
mov byte [ebp - 0xa5], al
test ecx, ecx
je 0x4884ca
lea eax, [ebp - 0xb0]
push eax
push ecx
push 0
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x4884ca
call ebx
mov ecx, eax
test ecx, ecx
jne 0x488506
cmp byte [ebp - 0xa5], 0
jne 0x488470
push 0
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x48852a
call ebx
mov edi, eax
test edi, edi
je 0x488524
mov ecx, dword [esi + 0xec]
test ecx, ecx
je 0x4887bf
mov eax, dword [ecx]
push esi
push 0xffffffffffffffff
push edi
call dword [eax + 4]
jmp 0x4887bf
mov edx, dword [esi + 0xec]
test edx, edx
je 0x4887bd
mov eax, dword [edx]
push esi
push ecx
push 0
mov ecx, edx
call dword [eax + 4]
jmp 0x4887bd
mov edi, dword [ebp - 0xac]
cmp dword [esi + 0xec], 0
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
je 0x4885ff
push 0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0
push ecx
push 0
push 0
push 0x16
push dword [edi + 4]
call eax
test eax, eax
jne 0x48858d
call ebx
mov edi, eax
test edi, edi
je 0x488587
cmp edi, 0x7a
je 0x488587
mov ecx, dword [esi + 0xec]
test ecx, ecx
je 0x4887bf
mov eax, dword [ecx]
push esi
push 0xffffffffffffffff
push edi
call dword [eax + 4]
jmp 0x4887bf
mov edi, dword [ebp - 0xac]
push dword [ebp - 0xa0]
call fcn.004933e1
push dword [ebp - 0xa0]
mov dword [ebp - 0x9c], eax
push 0
push eax
call fcn.00498020
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0
push eax
push dword [ebp - 0x9c]
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0
push 0x16
push dword [edi + 4]
call eax
test eax, eax
jne 0x4885d2
call ebx
mov ecx, dword [esi + 0xec]
push esi
push dword [ebp - 0xa0]
mov eax, dword [ecx]
push dword [ebp - 0x9c]
call dword [eax + 0xc]
push 1
push dword [ebp - 0x9c]
call fcn.004933d3
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
add esp, 8
push 0
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0xa4], 0
push ecx
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x9c], 4
push ecx
push 0
push 0x20000013
push dword [edi + 4]
call eax
test eax, eax
jne 0x488643
call ebx
mov edi, eax
test edi, edi
je 0x488645
mov ecx, dword [ebp - 0xa4]
jmp 0x48865b
xor edi, edi
mov ecx, dword [ebp - 0xa4]
cmp ecx, 0xc8
je 0x488678
cmp ecx, 0xce
je 0x488678
mov edx, dword [esi + 0xec]
test edx, edx
je 0x4887bf
mov eax, dword [edx]
push esi
push ecx
push edi
mov ecx, edx
call dword [eax + 4]
jmp 0x4887bf
mov edi, dword [ebp - 0xac]
xor eax, eax
push eax
mov word [ebp - 0x50], ax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0xb8], 0xffffffff
push eax
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0
push 5
push dword [edi + 4]
mov dword [ebp - 0xb0], 0xffffffff
mov dword [ebp - 0x9c], 0x40
call eax
test eax, eax
jne 0x4886c6
call ebx
test eax, eax
jne 0x4886e9
cmp word [ebp - 0x50], 0
je 0x4886e9
lea eax, [ebp - 0x50]
push eax
call fcn.0049c99d
mov ecx, eax
mov dword [ebp - 0xb0], edx
add esp, 4
mov dword [ebp - 0xb8], ecx
jmp 0x4886ec
or ecx, 0xffffffff
mov edx, dword [esi + 0xec]
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb4], 0
test edx, edx
je 0x488725
push dword [ebp - 0xa4]
mov eax, dword [edx]
push dword [ebp - 0xb0]
push ecx
push esi
mov ecx, edx
call dword [eax + 0x10]
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0x9c], 0
nop
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0
push eax
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x48884f
call ebx
test eax, eax
je 0x48884f
mov eax, dword [ebp - 0xa0]
test eax, eax
jne 0x488855
mov ecx, dword [ebp - 0xb8]
mov eax, ecx
mov edx, dword [ebp - 0xb0]
and eax, edx
cmp eax, 0xffffffff
je 0x48878f
xor eax, eax
cmp eax, edx
jg 0x4887a7
jl 0x48878f
cmp dword [ebp - 0x9c], ecx
jae 0x4887a7
mov ecx, dword [esi + 0xec]
test ecx, ecx
je 0x4887a7
mov eax, dword [ecx]
push esi
push dword [ebp - 0xa4]
push 0
call dword [eax + 4]
mov ecx, dword [esi + 0xec]
test ecx, ecx
je 0x4887bd
mov eax, dword [ecx]
push esi
push dword [ebp - 0xb4]
call dword [eax + 0x18]
xor edi, edi
mov eax, dword [ebp - 0x6c]
cmp eax, 8
jb 0x4887d4
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.00404770
xor eax, eax
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x70], 0
cmp eax, 8
jb 0x4887fd
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.00404770
mov ecx, dword [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
cmp ecx, 8
jb 0x48882f
inc ecx
push ecx
push dword [ebp - 0x98]
lea ecx, [ebp - 0x98]
call fcn.00404770
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493122
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0xa0]
push eax
call fcn.004933e1
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0xa0]
push ebx
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x488891
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
test edi, edi
jne 0x488911
mov edi, dword [ebp - 0xac]
mov ecx, dword [esi + 0xec]
test ecx, ecx
je 0x4888f0
push dword [ebp - 0xb4]
mov edx, dword [ebp - 0xbc]
push esi
test edx, edx
je 0x4888b5
add dword [ebp - 0x9c], edx
push edx
jmp 0x4888e1
mov eax, dword [ebp - 0xb8]
and eax, dword [ebp - 0xb0]
cmp eax, 0xffffffff
je 0x4888db
mov eax, dword [ebp - 0xb8]
sub eax, dword [ebp - 0x9c]
mov edx, dword [ecx]
push eax
push ebx
call dword [edx + 0x14]
jmp 0x4888e7
push dword [ebp - 0xa0]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
cmp eax, 0xffffffff
je 0x4887a7
push ebx
call fcn.00493645
add esp, 4
cmp dword [ebp - 0xbc], 0
je 0x4887a7
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x488730
mov ecx, dword [esi + 0xec]
test ecx, ecx
je 0x4887bf
mov eax, dword [ecx]
push esi
push dword [ebp - 0xa4]
push edi
call dword [eax + 4]
jmp 0x4887bf