Function at 0x564cf0
Capabilities:
Check http status code
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2824
call fcn.0059bbc0
mov eax, dword [0x6229a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x2808], ebx
xorps xmm0, xmm0
mov dword [ebp - 0x2818], esi
movq qword [ebp - 0x2810], xmm0
cmp byte [edi + 0x153], bl
jne 0x5650e5
cmp byte [edi + 0x152], 0
jne 0x5650df
mov eax, esi
sub eax, 0
je 0x565096
sub eax, 1
je 0x565034
sub eax, 1
jne 0x564ddc
mov edx, dword [edi + 0x5c]
lea ecx, [edi + 0x4c]
cmp dword [ecx + 0x10], edx
cmovb edx, dword [ecx + 0x10]
cmp dword [ecx + 0x14], 0x10
jb 0x564d72
mov ecx, dword [ecx]
push 5
push str.https
push edx
push ecx
call fcn.004de1b0
add esp, 0x10
lea ecx, [edi + 0xb0]
neg eax
sbb eax, eax
and eax, 0xff800000
add eax, 0x480c000
cmp dword [ecx + 0x14], 0x10
jb 0x564d9f
mov ecx, dword [ecx]
cmp dword [edi + 0xdc], 0x10
lea esi, [edi + 0xc8]
mov edx, esi
jb 0x564db2
mov edx, dword [esi]
push 0
push eax
push 0
push 0
push 0
push ecx
push edx
push dword [ebp - 0x280c]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
jne 0x564e2c
mov byte [edi + 0x153], 1
mov esi, dword [ebp - 0x2818]
push 0x2800
lea eax, [ebp - 0x2804]
push 0
push eax
call fcn.0059d800
add esp, 0xc
mov dword [ebp - 0x2814], 0x2800
lea eax, [ebp - 0x2814]
push eax
push 0x2800
lea eax, [ebp - 0x2804]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x564f76
push 0xa
mov ecx, edi
call fcn.00563f80
jmp 0x5650d2
mov ecx, dword [edi + 0xd8]
cmp dword [esi + 0x10], ecx
cmovb ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 0x10
jb 0x564e41
mov esi, dword [esi]
push 4
push str.POST
push ecx
push esi
call fcn.004de1b0
add esp, 0x10
test eax, eax
jne 0x564e88
cmp dword [edi + 0x124], 0x10
lea ecx, [edi + 0x110]
jb 0x564e67
mov ecx, dword [ecx]
cmp dword [edi + 0x10c], 0x10
lea eax, [edi + 0xf8]
jb 0x564e78
mov eax, dword [eax]
push dword [edi + 0x120]
push ecx
push dword [edi + 0x108]
push eax
jmp 0x564e90
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x564eb1
mov byte [edi + 0x152], 1
mov dword [edi + 0x154], 4
jmp 0x564dd6
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x2820]
push eax
lea eax, [ebp - 0x2814]
mov dword [ebp - 0x281c], 0
push eax
lea eax, [ebp - 0x281c]
mov dword [ebp - 0x2814], 4
push eax
push 0x20000013
push ebx
mov dword [ebp - 0x2820], 0
call esi
test eax, eax
jne 0x564efd
mov byte [edi + 0x153], 1
mov eax, dword [ebp - 0x281c]
cmp eax, 0x194
jne 0x564f0e
push 3
jmp 0x564f17
cmp eax, 0xc8
je 0x564f1e
push 4
mov ecx, edi
call fcn.00563f80
cmp byte [edi + 0x152], 0
jne 0x564dd6
lea eax, [ebp - 0x2820]
mov dword [ebp - 0x2814], 4
push eax
lea eax, [ebp - 0x2814]
push eax
lea eax, [ebp - 0x2824]
push eax
push 0x20000005
push ebx
call esi
mov esi, 3
mov dword [edi + 0x148], 0
mov dword [edi + 0x14c], 0
mov dword [ebp - 0x2818], esi
jmp 0x564ddc
cmp dword [ebp - 0x2814], 0
jne 0x564f8b
mov byte [edi + 0x152], 1
jmp 0x5650d2
cmp dword [edi + 0x128], 0
je 0x56500a
cmp byte [edi + 0x12c], 0
je 0x56500a
lea esi, [edi + 0x158]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [edi + 0x128]
lea eax, [ebp - 0x2804]
push dword [ebp - 0x2814]
push 1
push eax
call fcn.005aa485
add esp, 0x10
cmp eax, dword [ebp - 0x2814]
je 0x564fea
push 0xb
mov ecx, edi
call fcn.00563f80
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x2818]
jmp 0x5650d2
push dword [edi + 0x128]
call fcn.005b1311
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x2818]
jmp 0x5650d2
lea ecx, [ebp - 0x2804]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x565013
sub ecx, edx
lea eax, [ebp - 0x2804]
push ecx
push eax
lea ecx, [edi + 0x130]
call fcn.0040c5a0
jmp 0x5650d2
cmp dword [edi + 0x90], 0x10
lea edx, [edi + 0x7c]
jb 0x565042
mov edx, dword [edx]
cmp dword [edi + 0x78], 0x10
lea eax, [edi + 0x64]
jb 0x56504d
mov eax, dword [eax]
cmp dword [edi + 0xa8], 0x10
lea ecx, [edi + 0x94]
jb 0x56505e
mov ecx, dword [ecx]
push 0
push 0x4000000
push 3
push edx
push eax
movzx eax, word [edi + 0xac]
push eax
push ecx
push dword [ebp - 0x2810]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x280c], eax
test eax, eax
jne 0x56508f
mov byte [edi + 0x153], 1
mov esi, 2
jmp 0x5650cc
cmp dword [edi + 0xf4], 0x10
lea eax, [edi + 0xe0]
jb 0x5650a7
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x2810], eax
test eax, eax
jne 0x5650c7
mov byte [edi + 0x153], 1
mov esi, 1
mov dword [ebp - 0x2818], esi
cmp byte [edi + 0x153], 0
je 0x564d33
mov dword [ebp - 0x2808], ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
xor esi, esi
nop dword [eax]
mov eax, dword [ebp + esi*4 - 0x2810]
test eax, eax
je 0x5650fe
push eax
call ebx
inc esi
cmp esi, 3
jb 0x5650f0
cmp byte [edi + 0x153], 0
je 0x565118
push 6
mov ecx, edi
call fcn.00563f80
jmp 0x56512b
cmp dword [edi + 0x154], 2
jne 0x56512b
mov dword [edi + 0x154], 0
lea esi, [edi + 0x158]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x128]
test eax, eax
je 0x56514b
push eax
call fcn.005a93b7
add esp, 4
push esi
mov dword [edi + 0x128], 0
mov byte [edi + 0x12c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0059b734
mov esp, ebp
pop ebp
ret