Function at 0x5061b0
Capabilities:
Connect to http server
Create http request
Parse url
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
sub esp, 0x260
mov eax, dword [0x60aecc]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebp
push esi
mov esi, ecx
xor ebp, ebp
test byte [esi + 0x1c], 1
mov dword [esp + 0x10], ebp
mov byte [esp + 0xb], 0
je 0x5061de
mov ebp, 0x4000000
push ebx
push edi
push 0x3c
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x28], 0
call fcn.0055da20
push 0x103
lea ecx, [esp + 0x75]
push 0
push ecx
mov byte [esp + 0x7c], 0
call fcn.0055da20
push 0x103
lea edx, [esp + 0x185]
push 0
push edx
mov byte [esp + 0x18c], 0
call fcn.0055da20
mov edi, dword [esi]
lea eax, [esp + 0x88]
mov dword [esp + 0x5c], eax
mov eax, 0x104
lea ecx, [esp + 0x18c]
push str.https:
push edi
mov dword [esp + 0x54], 0x3c
mov dword [esp + 0x68], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
call fcn.0055f260
add esp, 0x2c
cmp edi, eax
sete bl
test bl, bl
jne 0x50627b
cmp byte [esi + 0x25], bl
je 0x50655a
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x506280
sub eax, edx
lea edx, [esp + 0x28]
push edx
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test bl, bl
je 0x506423
test byte [esi + 0x1c], 2
mov ebp, 0x4800100
je 0x5062b2
mov ebp, 0x4801100
mov ax, word [esp + 0x40]
test ax, ax
movzx eax, ax
jne 0x5062c4
mov eax, 0x1bb
mov ecx, dword [esi + 0xc]
mov edi, dword [sym.imp.WININET.dll_InternetConnectA]
push 0
push 0
push 3
push 0
push 0
push eax
lea eax, [esp + 0x7c]
push eax
push ecx
call edi
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x1c], ebx
jne 0x506361
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 6
jne 0x506347
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [str.pflib]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0xc], eax
mov dword [0x6143d0], eax
mov ax, word [esp + 0x40]
test ax, ax
movzx eax, ax
jne 0x506329
mov eax, 0x50
mov edx, dword [esi + 0xc]
push 0
push 0
push 3
push 0
push 0
push eax
lea ecx, [esp + 0x7c]
push ecx
push edx
call edi
mov ebx, eax
mov dword [esp + 0x1c], ebx
jmp 0x506355
push eax
push str.Error_creating_connection__HTTPS___d
call fcn.004dfae0
add esp, 8
test ebx, ebx
je 0x5065ca
mov ebx, dword [esp + 0x1c]
cmp byte [esi + 0x25], 0
push 0
push ebp
push 0
push 0
push 0
je 0x50637f
lea eax, [esp + 0x17c]
push eax
push str.POST
jmp 0x50638c
lea ecx, [esp + 0x17c]
push ecx
push 0x5cb0e4
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [esi + 0x10], eax
je 0x5065ca
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
push ecx
push 0x1f
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
mov eax, dword [esi + 0x10]
or dword [esp + 0x14], 0x100
push 4
lea edx, [esp + 0x18]
push edx
push 0x1f
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp byte [esi + 0x25], 0
jne 0x5063f3
mov ecx, dword [esi + 0x10]
push 0
push 0
push 0
push 0
push ecx
jmp 0x506539
mov edx, dword [esi + 0x10]
push 0x20000000
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov edx, dword [esi + 8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x506411
sub eax, edi
push eax
push edx
jmp 0x506531
cmp byte [esi + 0x25], 0
je 0x50655a
mov ax, word [esp + 0x40]
test ax, ax
movzx eax, ax
jne 0x50643f
mov eax, 0x50
mov edi, dword [sym.imp.WININET.dll_InternetConnectA]
push 0
push 0
push 3
push 0
push 0
push eax
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x7c]
push edx
push eax
call edi
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x1c], ebx
jne 0x5064dd
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 6
jne 0x5064c3
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [str.pflib]
push ebx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0xc], eax
mov dword [0x6143d0], eax
mov ax, word [esp + 0x40]
test ax, ax
movzx eax, ax
jne 0x5064a5
mov eax, 0x50
mov ecx, dword [esi + 0xc]
push 0
push 0
push 3
push 0
push 0
push eax
lea eax, [esp + 0x7c]
push eax
push ecx
call edi
mov ebx, eax
mov dword [esp + 0x1c], ebx
jmp 0x5064d1
push eax
push str.Error_creating_connection__POST___d
call fcn.004dfae0
add esp, 8
test ebx, ebx
je 0x5065ca
mov ebx, dword [esp + 0x1c]
push 0
push 0x4000100
push 0
push 0
push 0
lea edx, [esp + 0x17c]
push edx
push str.POST
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [esi + 0x10], eax
je 0x5065ca
push 0x20000000
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov ecx, dword [esi + 8]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x506524
sub eax, edi
push eax
push ecx
mov eax, dword [esi + 0x10]
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x5065ca
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x10], 0
jmp 0x5065ca
mov edx, dword [esi]
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.WININET.dll_InternetOpenUrlA]
push esi
push ebp
push 0
push 0
push edx
push eax
call edi
test eax, eax
mov dword [esi + 0x10], eax
jne 0x5065ca
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 6
jne 0x5065bc
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [str.pflib]
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.WININET.dll_InternetOpenA]
push esi
push ebp
mov dword [esi + 0xc], eax
push 0
mov dword [0x6143d0], eax
mov eax, dword [esi]
mov ecx, dword [esi + 0xc]
push 0
push eax
push ecx
call edi
mov dword [esi + 0x10], eax
jmp 0x5065ca
push eax
push str.Error_creating_connection__InternetOpenUrl___d
call fcn.004dfae0
add esp, 8
xor ebp, ebp
cmp dword [esi + 0x10], ebp
jne 0x5065e3
mov edi, dword [esp + 0x18]
mov dword [esi + 0x28], 2
mov ebx, edi
jmp 0x506732
push 0x8000
call fcn.0055ce46
mov edx, dword [esi + 4]
mov ebx, eax
mov eax, edx
add esp, 4
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x506600
sub eax, edi
je 0x50662c
push 2
push edx
call fcn.004bbf90
mov edi, eax
add esp, 8
cmp edi, ebp
jne 0x506647
mov dword [esi + 0x28], 3
mov byte [esp + 0x13], 1
jmp 0x506647
push 1
mov dword [esi + 0x18], 1
call fcn.0055ce46
mov edi, dword [esp + 0x1c]
mov dword [esi + 0x20], eax
add esp, 4
mov byte [eax], 0
cmp byte [esi + 0x24], 0
jne 0x506732
cmp byte [esp + 0x13], 0
jne 0x506732
push 1
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [esi + 0x10]
push ebp
push ebp
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x50668e
mov dword [esi + 0x28], 2
mov byte [esp + 0x13], 1
jmp 0x506728
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x5066b3
cmp edi, ebp
je 0x5066a5
push edi
call fcn.004b9a90
add esp, 4
xor edi, edi
mov dword [esi + 0x28], 1
mov byte [esp + 0x13], 1
jmp 0x506728
jbe 0x506728
cmp eax, 0x8000
jbe 0x5066c1
mov eax, 0x8000
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0x18]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x28], ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x5066ec
mov eax, dword [esp + 0x14]
mov dword [esi + 0x28], 2
mov byte [esp + 0x13], 1
jmp 0x506724
cmp edi, ebp
je 0x506701
mov eax, dword [esp + 0x18]
push eax
push ebx
push edi
call fcn.004b9b00
add esp, 0xc
jmp 0x506713
cmp dword [esi + 0x20], ebp
je 0x506713
mov ecx, dword [esp + 0x18]
push ecx
push ebx
mov ecx, esi
call fcn.005052c0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub eax, ecx
add dword [esi + 0x14], ecx
mov dword [esp + 0x14], eax
cmp eax, ebp
ja 0x5066b5
cmp byte [esi + 0x24], 0
je 0x506651
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x506743
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x10], ebp
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x506752
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp edi, ebp
je 0x50675f
push edi
call fcn.004b9a90
add esp, 4
push ebx
call fcn.0055f5cf
add esp, 4
cmp byte [esi + 0x24], 0
jne 0x50677e
mov edi, dword [sym.imp.kernel32.dll_Sleep]
push 0x64
call edi
cmp byte [esi + 0x24], 0
je 0x506774
mov eax, dword [esi + 0x20]
cmp eax, ebp
pop edi
pop ebx
je 0x506793
push eax
call fcn.0055f5cf
add esp, 4
mov dword [esi + 0x20], ebp
mov edx, dword [esi]
push edx
call fcn.0055e01f
mov eax, dword [esi + 4]
push eax
call fcn.0055e01f
mov ecx, dword [esi + 8]
push ecx
call fcn.0055e01f
push esi
call fcn.0055d39b
add esp, 0x10
push ebp
call dword [sym.imp.kernel32.dll_ExitThread]