Function at 0x4a3360
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 0x5090bb
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x541074]
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.004034d0
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.00402f90
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.004034d0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x68]
call fcn.00404c20
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 0x4a3472
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 0x4a3495
call ebx
lea eax, [esi + 0x68]
mov dword [ebp - 0xac], 0
lea ecx, [edi + 0xc]
cmp ecx, eax
je 0x4a34b3
push 0xffffffffffffffff
push 0
push eax
call fcn.00403260
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 0x4a3506
call ebx
mov edi, eax
test edi, edi
je 0x4a3500
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x4a3850
mov eax, dword [ecx]
push esi
push 0
push edi
call dword [eax + 4]
jmp 0x4a3850
mov edi, dword [ebp - 0xb0]
cmp dword [esi + 0xf0], 0
je 0x4a3583
cmp dword [esi + 0x104], 0
je 0x4a3583
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 0x4a357a
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 0x4a357a
call ebx
mov ecx, eax
test ecx, ecx
jne 0x4a35b6
cmp byte [ebp - 0xa5], 0
jne 0x4a3520
push 0
push dword [edi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x4a35da
call ebx
mov edi, eax
test edi, edi
je 0x4a35d4
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x4a3850
mov eax, dword [ecx]
push esi
push 0xffffffffffffffff
push edi
call dword [eax + 4]
jmp 0x4a3850
mov edx, dword [esi + 0x104]
test edx, edx
je 0x4a384e
mov eax, dword [edx]
push esi
push ecx
push 0
mov ecx, edx
call dword [eax + 4]
jmp 0x4a384e
mov edi, dword [ebp - 0xb0]
cmp dword [esi + 0x104], 0
mov eax, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
je 0x4a36af
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 0x4a363d
call ebx
mov edi, eax
test edi, edi
je 0x4a3637
cmp edi, 0x7a
je 0x4a3637
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x4a3850
mov eax, dword [ecx]
push esi
push 0xffffffffffffffff
push edi
call dword [eax + 4]
jmp 0x4a3850
mov edi, dword [ebp - 0xb0]
push dword [ebp - 0x9c]
call fcn.004c8b41
push dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
push 0
push eax
call fcn.004e2480
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 0x4a3682
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.004c8b33
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 0x4a36f3
call ebx
mov edi, eax
test edi, edi
je 0x4a36f5
mov ecx, dword [ebp - 0xac]
jmp 0x4a370b
xor edi, edi
mov ecx, dword [ebp - 0xac]
cmp ecx, 0xc8
je 0x4a3728
cmp ecx, 0xce
je 0x4a3728
mov edx, dword [esi + 0x104]
test edx, edx
je 0x4a3850
mov eax, dword [edx]
push esi
push ecx
push edi
mov ecx, edx
call dword [eax + 4]
jmp 0x4a3850
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 0x4a3776
call ebx
test eax, eax
jne 0x4a3799
cmp word [ebp - 0x50], 0
je 0x4a3799
lea eax, [ebp - 0x50]
push eax
call fcn.004e97de
mov ecx, eax
mov dword [ebp - 0xb8], edx
add esp, 4
mov dword [ebp - 0xb4], ecx
jmp 0x4a379c
or ecx, 0xffffffff
mov edx, dword [esi + 0x104]
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xa4], 0
test edx, edx
je 0x4a37d5
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 0x4a38e0
call ebx
test eax, eax
je 0x4a38e0
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
jne 0x4a38ee
mov ecx, dword [esi + 0x104]
mov dword [esi + 0x138], eax
test ecx, ecx
je 0x4a3838
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 0x4a384e
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 0x4a3865
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
call fcn.00403ab0
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 0x4a388e
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.00403ab0
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 0x4a38c0
inc ecx
push ecx
push dword [ebp - 0x98]
lea ecx, [ebp - 0x98]
call fcn.00403ab0
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.004c8882
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
je 0x4a3838
push ecx
call fcn.004c8b41
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 0x4a392a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4a39aa
mov edi, dword [ebp - 0xb0]
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x4a3989
push dword [ebp - 0xa4]
mov edx, dword [ebp - 0xbc]
push esi
test edx, edx
je 0x4a394e
add dword [ebp - 0xa0], edx
push edx
jmp 0x4a397a
mov eax, dword [ebp - 0xb4]
and eax, dword [ebp - 0xb8]
cmp eax, 0xffffffff
je 0x4a3974
mov eax, dword [ebp - 0xb4]
sub eax, dword [ebp - 0xa0]
mov edx, dword [ecx]
push eax
push ebx
call dword [edx + 0x14]
jmp 0x4a3980
push dword [ebp - 0x9c]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
cmp eax, 0xffffffff
je 0x4a3838
push ebx
call fcn.004c8d6c
add esp, 4
cmp dword [ebp - 0xbc], 0
je 0x4a3838
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4a37e0
mov ecx, dword [esi + 0x104]
test ecx, ecx
je 0x4a3850
mov eax, dword [ecx]
push esi
push dword [ebp - 0xac]
push edi
call dword [eax + 4]
jmp 0x4a3850