Function at 0x4cae80
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 0x5266ab
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5640a8]
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 - 0xb0], 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 + 0xe0]
lea eax, [esi + 0xb0]
mov dword [ebp - 0x88], 0
push eax
call fcn.00402670
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.00402570
mov byte [ebp - 4], 1
lea eax, [esi + 0xc8]
push 0xffffffffffffffff
push dword [esi + 0xe4]
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.00402670
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x68]
call fcn.0040ca60
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 0x4caf92
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 0x4cafb5
call ebx
lea eax, [esi + 0x68]
mov dword [ebp - 0xac], 0
lea ecx, [edi + 0xc]
cmp ecx, eax
je 0x4cafd3
push 0xffffffffffffffff
push 0
push eax
call fcn.004027f0
mov ecx, dword [esi + 0xec]
mov eax, dword [esi + 0xf0]
push edi
add eax, ecx
push eax
push ecx
push dword [esi + 0xe8]
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x4cb026
call ebx
mov edi, eax
test edi, edi
je 0x4cb020
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x4cb370
mov eax, dword [ecx]
push esi
push 0
push edi
call dword [eax + 4]
jmp 0x4cb370
mov edi, dword [ebp - 0xb0]
cmp dword [esi + 0xf0], 0
je 0x4cb0a3
cmp dword [esi + 0x104], 0
je 0x4cb0a3
nop dword [eax + eax]
mov ecx, dword [esi + 0x104]
lea edx, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xb4], 0
push edx
mov eax, dword [ecx]
push 0
push esi
mov eax, dword [eax + 8]
call eax
mov ecx, dword [ebp - 0xa0]
mov byte [ebp - 0xa5], al
test ecx, ecx
je 0x4cb09a
lea eax, [ebp - 0xb4]
push eax
push ecx
push 0
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x4cb09a
call ebx
mov ecx, eax
test ecx, ecx
jne 0x4cb0d6
cmp byte [ebp - 0xa5], 0
jne 0x4cb040
push 0
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x4cb0fa
call ebx
mov edi, eax
test edi, edi
je 0x4cb0f4
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x4cb370
mov eax, dword [ecx]
push esi
push 0xffffffffffffffff
push edi
call dword [eax + 4]
jmp 0x4cb370
mov edx, dword [esi + 0x104]
test edx, edx
je 0x4cb36e
mov eax, dword [edx]
push esi
push ecx
push 0
mov ecx, edx
call dword [eax + 4]
jmp 0x4cb36e
mov edi, dword [ebp - 0xb0]
cmp dword [esi + 0x104], 0
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
je 0x4cb1cf
push 0
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0
push ecx
push 0
push 0
push 0x16
push dword [edi + 4]
call eax
test eax, eax
jne 0x4cb15d
call ebx
mov edi, eax
test edi, edi
je 0x4cb157
cmp edi, 0x7a
je 0x4cb157
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x4cb370
mov eax, dword [ecx]
push esi
push 0xffffffffffffffff
push edi
call dword [eax + 4]
jmp 0x4cb370
mov edi, dword [ebp - 0xb0]
push dword [ebp - 0x9c]
call fcn.004e2524
push dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
push 0
push eax
call fcn.004fb530
add esp, 0x10
lea eax, [ebp - 0x9c]
push 0
push eax
push dword [ebp - 0xa4]
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0
push 0x16
push dword [edi + 4]
call eax
test eax, eax
jne 0x4cb1a2
call ebx
mov ecx, dword [esi + 0x104]
push esi
push dword [ebp - 0x9c]
mov eax, dword [ecx]
push dword [ebp - 0xa4]
call dword [eax + 0xc]
push 1
push dword [ebp - 0xa4]
call fcn.004e22e6
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
add esp, 8
push 0
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xac], 0
push ecx
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xa0], 4
push ecx
push 0
push 0x20000013
push dword [edi + 4]
call eax
test eax, eax
jne 0x4cb213
call ebx
mov edi, eax
test edi, edi
je 0x4cb215
mov ecx, dword [ebp - 0xac]
jmp 0x4cb22b
xor edi, edi
mov ecx, dword [ebp - 0xac]
cmp ecx, 0xc8
je 0x4cb248
cmp ecx, 0xce
je 0x4cb248
mov edx, dword [esi + 0x104]
test edx, edx
je 0x4cb370
mov eax, dword [edx]
push esi
push ecx
push edi
mov ecx, edx
call dword [eax + 4]
jmp 0x4cb370
mov edi, dword [ebp - 0xb0]
xor eax, eax
push eax
mov word [ebp - 0x50], ax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0xb4], 0xffffffff
push eax
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0
push 5
push dword [edi + 4]
mov dword [ebp - 0xb8], 0xffffffff
mov dword [ebp - 0xa0], 0x40
call eax
test eax, eax
jne 0x4cb296
call ebx
test eax, eax
jne 0x4cb2b9
cmp word [ebp - 0x50], 0
je 0x4cb2b9
lea eax, [ebp - 0x50]
push eax
call fcn.00502b6f
mov ecx, eax
mov dword [ebp - 0xb8], edx
add esp, 4
mov dword [ebp - 0xb4], ecx
jmp 0x4cb2bc
or ecx, 0xffffffff
mov edx, dword [esi + 0x104]
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xa4], 0
test edx, edx
je 0x4cb2f5
push dword [ebp - 0xac]
mov eax, dword [edx]
push dword [ebp - 0xb8]
push ecx
push esi
mov ecx, edx
call dword [eax + 0x10]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], 0
nop
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0
push eax
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4cb400
call ebx
test eax, eax
je 0x4cb400
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
jne 0x4cb40e
mov ecx, dword [esi + 0x104]
mov dword [esi + 0x138], eax
test ecx, ecx
je 0x4cb358
mov eax, dword [ecx]
push esi
push dword [ebp - 0xac]
push 0
call dword [eax + 4]
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x4cb36e
mov eax, dword [ecx]
push esi
push dword [ebp - 0xa4]
call dword [eax + 0x18]
xor edi, edi
mov eax, dword [ebp - 0x6c]
cmp eax, 8
jb 0x4cb385
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.00402f10
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 0x4cb3ae
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.00402f10
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 0x4cb3e0
inc ecx
push ecx
push dword [ebp - 0x98]
lea ecx, [ebp - 0x98]
call fcn.00402f10
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.004e1de4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
je 0x4cb358
push ecx
call fcn.004e2524
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0x9c]
push ebx
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x4cb44a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4cb4ca
mov edi, dword [ebp - 0xb0]
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x4cb4a9
push dword [ebp - 0xa4]
mov edx, dword [ebp - 0xbc]
push esi
test edx, edx
je 0x4cb46e
add dword [ebp - 0xa0], edx
push edx
jmp 0x4cb49a
mov eax, dword [ebp - 0xb4]
and eax, dword [ebp - 0xb8]
cmp eax, 0xffffffff
je 0x4cb494
mov eax, dword [ebp - 0xb4]
sub eax, dword [ebp - 0xa0]
mov edx, dword [ecx]
push eax
push ebx
call dword [edx + 0x14]
jmp 0x4cb4a0
push dword [ebp - 0x9c]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
cmp eax, 0xffffffff
je 0x4cb358
push ebx
call fcn.004e2516
add esp, 4
cmp dword [ebp - 0xbc], 0
je 0x4cb358
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4cb300
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x4cb370
mov eax, dword [ecx]
push esi
push dword [ebp - 0xac]
push edi
call dword [eax + 4]
jmp 0x4cb370