Function at 0x4cac30
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 0x52645b
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.0040c9c0
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 0x4cad42
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 0x4cad65
call ebx
lea eax, [esi + 0x68]
mov dword [ebp - 0xac], 0
lea ecx, [edi + 0xc]
cmp ecx, eax
je 0x4cad83
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 0x4cadd6
call ebx
mov edi, eax
test edi, edi
je 0x4cadd0
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x4cb120
mov eax, dword [ecx]
push esi
push 0
push edi
call dword [eax + 4]
jmp 0x4cb120
mov edi, dword [ebp - 0xb0]
cmp dword [esi + 0xf0], 0
je 0x4cae53
cmp dword [esi + 0x104], 0
je 0x4cae53
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 0x4cae4a
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 0x4cae4a
call ebx
mov ecx, eax
test ecx, ecx
jne 0x4cae86
cmp byte [ebp - 0xa5], 0
jne 0x4cadf0
push 0
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x4caeaa
call ebx
mov edi, eax
test edi, edi
je 0x4caea4
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x4cb120
mov eax, dword [ecx]
push esi
push 0xffffffffffffffff
push edi
call dword [eax + 4]
jmp 0x4cb120
mov edx, dword [esi + 0x104]
test edx, edx
je 0x4cb11e
mov eax, dword [edx]
push esi
push ecx
push 0
mov ecx, edx
call dword [eax + 4]
jmp 0x4cb11e
mov edi, dword [ebp - 0xb0]
cmp dword [esi + 0x104], 0
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
je 0x4caf7f
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 0x4caf0d
call ebx
mov edi, eax
test edi, edi
je 0x4caf07
cmp edi, 0x7a
je 0x4caf07
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x4cb120
mov eax, dword [ecx]
push esi
push 0xffffffffffffffff
push edi
call dword [eax + 4]
jmp 0x4cb120
mov edi, dword [ebp - 0xb0]
push dword [ebp - 0x9c]
call fcn.004e22d3
push dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
push 0
push eax
call fcn.004fb2d0
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 0x4caf52
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.004e2095
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 0x4cafc3
call ebx
mov edi, eax
test edi, edi
je 0x4cafc5
mov ecx, dword [ebp - 0xac]
jmp 0x4cafdb
xor edi, edi
mov ecx, dword [ebp - 0xac]
cmp ecx, 0xc8
je 0x4caff8
cmp ecx, 0xce
je 0x4caff8
mov edx, dword [esi + 0x104]
test edx, edx
je 0x4cb120
mov eax, dword [edx]
push esi
push ecx
push edi
mov ecx, edx
call dword [eax + 4]
jmp 0x4cb120
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 0x4cb046
call ebx
test eax, eax
jne 0x4cb069
cmp word [ebp - 0x50], 0
je 0x4cb069
lea eax, [ebp - 0x50]
push eax
call fcn.0050297a
mov ecx, eax
mov dword [ebp - 0xb8], edx
add esp, 4
mov dword [ebp - 0xb4], ecx
jmp 0x4cb06c
or ecx, 0xffffffff
mov edx, dword [esi + 0x104]
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xa4], 0
test edx, edx
je 0x4cb0a5
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 0x4cb1b0
call ebx
test eax, eax
je 0x4cb1b0
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
jne 0x4cb1be
mov ecx, dword [esi + 0x104]
mov dword [esi + 0x138], eax
test ecx, ecx
je 0x4cb108
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 0x4cb11e
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 0x4cb135
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 0x4cb15e
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 0x4cb190
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.004e1bb1
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
je 0x4cb108
push ecx
call fcn.004e22d3
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 0x4cb1fa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
test edi, edi
jne 0x4cb27a
mov edi, dword [ebp - 0xb0]
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x4cb259
push dword [ebp - 0xa4]
mov edx, dword [ebp - 0xbc]
push esi
test edx, edx
je 0x4cb21e
add dword [ebp - 0xa0], edx
push edx
jmp 0x4cb24a
mov eax, dword [ebp - 0xb4]
and eax, dword [ebp - 0xb8]
cmp eax, 0xffffffff
je 0x4cb244
mov eax, dword [ebp - 0xb4]
sub eax, dword [ebp - 0xa0]
mov edx, dword [ecx]
push eax
push ebx
call dword [edx + 0x14]
jmp 0x4cb250
push dword [ebp - 0x9c]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
cmp eax, 0xffffffff
je 0x4cb108
push ebx
call fcn.004e22c5
add esp, 4
cmp dword [ebp - 0xbc], 0
je 0x4cb108
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x4cb0b0
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x4cb120
mov eax, dword [ecx]
push esi
push dword [ebp - 0xac]
push edi
call dword [eax + 4]
jmp 0x4cb120