Function at 0x459030
Capabilities:
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6353
mov eax, dword fs:[0]
push eax
mov eax, 0x1124
call fcn.00473040
mov eax, dword [0x4e42e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1120], 0
mov dword [ebp - 0x1100], 0
mov dword [ebp - 0x10fc], 0xf
mov byte [ebp - 0x1110], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10e8], 0
mov dword [ebp - 0x10e4], 0xf
mov byte [ebp - 0x10f8], 0
mov dword [ebp - 0x10d0], 0
mov dword [ebp - 0x10cc], 0xf
mov byte [ebp - 0x10e0], 0
mov dword [ebp - 0x10b8], 0
mov dword [ebp - 0x10b4], 0xf
mov byte [ebp - 0x10c8], 0
mov dword [ebp - 0x10a0], 0
mov dword [ebp - 0x109c], 0xf
mov byte [ebp - 0x10b0], 0
mov dword [ebp - 0x1098], 0
mov dword [ebp - 0x1094], 0
mov dword [ebp - 0x1090], 0
mov dword [ebp - 0x107c], 0
mov dword [ebp - 0x1078], 0xf
mov byte [ebp - 0x108c], 0
push eax
lea ecx, [ebp - 0x1074]
mov byte [ebp - 4], 6
call fcn.00403c90
mov word [ebp - 0x105c], 0
mov byte [ebp - 0x105a], 0xff
push 0
push 0
push 0
push 0
push str.Statistics
mov dword [ebp - 4], 7
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x1128], edi
test edi, edi
je 0x45919f
lea eax, [ebp - 0x1110]
push eax
push edi
call fcn.00458e20
add esp, 8
mov dword [ebp - 0x111c], eax
test eax, eax
jne 0x4591d4
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 0x1111], 0
lea ecx, [ebp - 0x1110]
call fcn.00458b30
mov al, byte [ebp - 0x1111]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472897
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp - 0x105c], 0
mov dword [ebp - 0x1130], str.application_json
mov dword [ebp - 0x112c], 0
jne 0x4591fc
lea ecx, [ebp - 0x1110]
call fcn.0045b770
mov edi, dword [ebp - 0x10fc]
lea eax, [ebp - 0x1110]
push 4
push str.http
push dword [ebp - 0x1100]
cmp edi, 0x10
cmovae eax, dword [ebp - 0x1110]
push eax
call fcn.004033f0
add esp, 0x10
test al, al
je 0x459233
mov edi, 0x400000
jmp 0x459280
cmp byte [ebp - 0x105c], 0
jne 0x45924d
lea ecx, [ebp - 0x1110]
call fcn.0045b770
mov edi, dword [ebp - 0x10fc]
push 5
push str.https
push dword [ebp - 0x1100]
cmp edi, 0x10
lea eax, [ebp - 0x1110]
cmovae eax, dword [ebp - 0x1110]
push eax
call fcn.004033f0
add esp, 0x10
test al, al
je 0x459629
mov edi, 0xc00000
cmp byte [ebp - 0x105c], 0
jne 0x459294
lea ecx, [ebp - 0x1110]
call fcn.0045b770
cmp dword [ebp - 0x109c], 0x10
lea ecx, [ebp - 0x1130]
push 1
push edi
push ecx
push 0
push 0
lea eax, [ebp - 0x10b0]
cmovae eax, dword [ebp - 0x10b0]
push eax
push str.POST
push dword [ebp - 0x111c]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp - 0x1124], edi
test edi, edi
je 0x45960e
push 0x20000000
push 0xffffffffffffffff
push str.Content_Type:_application_json_r_n
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4592f5
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
setne byte [ebp - 0x1111]
test eax, eax
je 0x4594a8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x1000
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00458d70
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x1118]
push eax
push 0xfff
lea eax, [ebp - 0x1028]
mov dword [ebp - 0x1118], 0
push eax
push edi
call esi
test eax, eax
je 0x4593b0
mov eax, dword [ebp - 0x1118]
test eax, eax
je 0x4593b0
push dword [ebp - 0x1120]
lea ecx, [ebp - 0x1028]
add eax, ecx
push eax
mov eax, ecx
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
call fcn.00458910
lea eax, [ebp - 0x1118]
mov dword [ebp - 0x1118], 0
push eax
push 0xfff
lea eax, [ebp - 0x1028]
push eax
push edi
call esi
test eax, eax
jne 0x459365
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1040]
mov edi, dword [ebp - 0x20]
mov eax, esi
sub eax, edi
mov dword [ebp - 0x1030], 0
push eax
mov dword [ebp - 0x102c], 0xf
mov byte [ebp - 0x1040], 0
call fcn.00411e80
push dword [ebp - 0x1120]
lea ecx, [ebp - 0x1040]
push esi
push edi
call fcn.004586c0
cmp dword [ebp - 0x1030], 0
mov dword [ebp - 0x1120], 1
jne 0x459419
push 7
push str._empty_
lea ecx, [ebp - 0x1040]
call fcn.00408c80
test edi, edi
je 0x45944a
mov ecx, dword [ebp - 0x18]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x459440
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45966f
push ecx
push edi
call fcn.0047242a
add esp, 8
mov edx, dword [ebp - 0x102c]
cmp edx, 0x10
jb 0x459484
mov ecx, dword [ebp - 0x1040]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45947a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459674
push edx
push ecx
call fcn.0047242a
add esp, 8
mov edi, dword [ebp - 0x1124]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x111c]
call esi
push dword [ebp - 0x1128]
call esi
jmp 0x4591a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x1044], 0xf
mov byte [ebp - 0x1058], 0
mov ecx, eax
mov byte [ebp - 4], 0xb
sub ecx, 0x2ee5
je 0x4595b9
sub ecx, 2
je 0x4595b0
sub ecx, 0x16
je 0x4595a7
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.0040bd80
lea ecx, [ebp - 0x13]
mov dword [ebp - 0x1030], 0
add esp, 8
mov dword [ebp - 0x102c], 0xf
mov byte [ebp - 0x1040], 0
cmp eax, ecx
je 0x45952b
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x1040]
call fcn.00408c80
push 0x14
push str.Unknown_error_code:
push 0
lea ecx, [ebp - 0x1040]
mov byte [ebp - 4], 0xc
call fcn.00410e90
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x102c]
movq qword [ebp - 0x1048], xmm1
movups xmmword [ebp - 0x1058], xmm0
cmp edx, 0x10
jb 0x4595cb
mov ecx, dword [ebp - 0x1040]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45959b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x459679
push edx
push ecx
call fcn.0047242a
add esp, 8
jmp 0x4595cb
push 0x1c
push str.Cannot_connect_to_the_server
jmp 0x4595c0
push 0x1a
push str.Cannot_resolve_server_name
jmp 0x4595c0
push 0x13
push str.Invalid_url_address
lea ecx, [ebp - 0x1058]
call fcn.00408c80
mov edx, dword [ebp - 0x1044]
cmp edx, 0x10
jb 0x45948a
mov ecx, dword [ebp - 0x1058]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4595ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45967e
push edx
push ecx
call fcn.0047242a
add esp, 8
jmp 0x45948a
push dword [ebp - 0x111c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1128]
call esi
jmp 0x45919f
lea ecx, [ebp - 0x1110]
call fcn.00459010
push eax
lea eax, [ebp - 0x1040]
push str.Send_PostRequest_failed:_use_unsupported_protocol_
push eax
call fcn.00419eb0
add esp, 0xc
lea ecx, [ebp - 0x1040]
mov byte [ebp - 4], 8
call fcn.00408d70
push eax
lea ecx, [ebp - 0x20]
call fcn.0040c7f0
push 0x4d8ed4
lea eax, [ebp - 0x20]
push eax
call fcn.0048927d
call fcn.0048d2da
call fcn.0048d2da
call fcn.0048d2da
call fcn.0048d2da
int3