Function at 0x402170
Capabilities:
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599948
mov eax, dword fs:[0]
push eax
mov eax, 0x1500
call fcn.0056fad0
mov eax, dword [0x608ec4]
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 + 0x58]
mov esi, dword [ebp + 0x5c]
movzx edi, word [ebp + 0x3c]
mov dword [ebp - 0x1504], eax
mov dword [ebp - 0x14f0], esi
push 0
push 0
push 0
push 0
push str.CHttpsConnect
mov dword [ebp - 4], 2
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, eax
mov dword [ebp - 0x14f8], ecx
test ecx, ecx
jne 0x4021f7
mov eax, str.Failed_call_to_InternetOpenA_n
push eax
call fcn.00402ce0
add esp, 4
mov byte [ebp - 0x14dd], 0
jmp 0x4025d7
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
push 0
cmovae eax, dword [ebp + 0xc]
push 0
push 3
push 0x5e21bf
push 0x5e21bf
push edi
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, eax
mov dword [ebp - 0x14f4], ecx
test ecx, ecx
jne 0x402241
mov eax, str.Failed_call_to_InternetConnectA_n
push eax
call fcn.00402ce0
add esp, 4
mov byte [ebp - 0x14dd], 0
jmp 0x4025d7
mov ax, word [0x5e2078]
xorps xmm0, xmm0
movups xmmword [ebp - 0x14dc], xmm0
mov word [ebp - 0x14dc], ax
mov al, byte [0x5e207a]
mov dword [ebp - 0x14cc], 3
mov dword [ebp - 0x14c8], 0xf
mov byte [ebp - 0x14da], al
mov byte [ebp - 0x14d9], 0
mov byte [ebp - 4], 3
cmp dword [ebp + 0x50], 0
je 0x4022a3
mov dword [ebp - 0x14cc], 4
mov dword [ebp - 0x14dc], 0x54534f50
mov byte [ebp - 0x14d8], 0
cmp dword [ebp + 0x38], 0x10
lea edx, [ebp - 0x150c]
push 0
push 0x4803000
push edx
push 0
push str.HTTP_1.0
lea eax, [ebp + 0x24]
mov dword [ebp - 0x150c], str.text_xml
cmovae eax, dword [ebp + 0x24]
push eax
lea eax, [ebp - 0x14dc]
mov dword [ebp - 0x1508], 0
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp - 0x14e8], 0xf180
push 4
lea eax, [ebp - 0x14e8]
mov dword [ebp - 0x14ec], edi
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0x1000
lea eax, [ebp - 0x14c4]
push 0
push eax
call fcn.005720f0
lea eax, [ebp - 0x14c4]
push str.HTTP_1.1_r_nContent_Type:_application_x_www_form_urlencoded_r_nAccept:___r_nUser_Agent:_Mozilla_5.0__Windows_NT_10.0__WOW64__Trident_7.0__rv:11.0__like_Gecko__r_nProxy_Connection:_Keep_Alive_r_n
push eax
call fcn.00402cc0
add esp, 0x14
lea eax, [ebp - 0x14c4]
push 0x20000000
push 0x1000
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
movups xmm0, xmmword [str.Content_Type:_application_x_www_form_urlencoded_r_n]
mov ax, word [0x5e218c]
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x14dd], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x14], ax
movups xmm0, xmmword [0x5e216c]
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [0x5e217c]
movups xmmword [ebp - 0x24], xmm0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402381
push dword [ebp + 0x50]
sub ecx, edx
lea eax, [ebp + 0x40]
cmp dword [ebp + 0x54], 0x10
cmovae eax, dword [ebp + 0x40]
push eax
push ecx
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, 1
jne 0x402555
push 0x80
lea eax, [ebp - 0xc4]
push 0
push eax
call fcn.005720f0
add esp, 0xc
mov dword [ebp - 0x14fc], 0x80
lea eax, [ebp - 0x14fc]
push 0
push eax
lea eax, [ebp - 0xc4]
push eax
push 0x13
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, 1
jne 0x402429
lea eax, [ebp - 0xc4]
push 0x5e2190
push eax
call fcn.0057a1f3
add esp, 8
test eax, eax
je 0x402429
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x14f4]
call esi
push dword [ebp - 0x14f8]
call esi
mov byte [ebp - 0x14dd], 0
jmp 0x402582
push 0
push 0
push esi
push edi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov eax, dword [esi]
inc eax
push eax
call fcn.0042545e
mov ecx, dword [esi]
mov edi, eax
inc ecx
push ecx
push 0
push edi
call fcn.005720f0
xor esi, esi
lea eax, [ebp - 0x4c4]
push 0x400
push esi
push eax
mov dword [ebp - 0x14e8], esi
call fcn.005720f0
add esp, 0x1c
mov dword [ebp - 0x14e4], esi
lea eax, [ebp - 0x14e4]
push eax
push 0x400
lea eax, [ebp - 0x4c4]
push eax
push dword [ebp - 0x14ec]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40253e
nop word [eax + eax]
mov eax, dword [ebp - 0x14e4]
test eax, eax
je 0x40253e
mov edx, dword [ebp - 0x14f0]
lea ecx, [eax + esi]
mov edx, dword [edx]
mov dword [ebp - 0x1500], edx
cmp ecx, edx
jbe 0x4024f7
mov eax, dword [ebp - 0x14f0]
push ecx
mov dword [eax], ecx
call fcn.0042545e
push dword [ebp - 0x1500]
mov esi, eax
push edi
push esi
call fcn.00571b70
push edi
call fcn.00425467
mov eax, dword [ebp - 0x14e4]
mov edi, esi
mov esi, dword [ebp - 0x14e8]
add esp, 0x14
push eax
lea eax, [ebp - 0x4c4]
push eax
lea eax, [esi + edi]
push eax
call fcn.00571b70
add esi, dword [ebp - 0x14e4]
lea eax, [ebp - 0x14e4]
add esp, 0xc
mov dword [ebp - 0x14e8], esi
push eax
push 0x400
lea eax, [ebp - 0x4c4]
push eax
push dword [ebp - 0x14ec]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4024a0
mov eax, dword [ebp - 0x1504]
mov byte [ebp - 0x14dd], 1
mov dword [eax], edi
mov edi, dword [ebp - 0x14ec]
jmp 0x402569
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_call_to_HttpSendRequestA_:_GLE__d__n
call fcn.00402ce0
add esp, 8
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 0x14f4]
call esi
push dword [ebp - 0x14f8]
call esi
mov ecx, dword [ebp - 0x14c8]
cmp ecx, 0x10
jb 0x4025bc
mov edx, dword [ebp - 0x14dc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4025b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026b2
push ecx
push edx
call fcn.0056eea1
add esp, 8
mov dword [ebp - 0x14cc], 0
mov dword [ebp - 0x14c8], 0xf
mov byte [ebp - 0x14dc], 0
mov ecx, dword [ebp + 0x20]
cmp ecx, 0x10
jb 0x40260b
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402601
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026b2
push ecx
push edx
call fcn.0056eea1
add esp, 8
mov ecx, dword [ebp + 0x38]
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
mov byte [ebp + 0xc], 0
cmp ecx, 0x10
jb 0x40264d
mov edx, dword [ebp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402643
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026b2
push ecx
push edx
call fcn.0056eea1
add esp, 8
mov ecx, dword [ebp + 0x54]
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0xf
mov byte [ebp + 0x24], 0
cmp ecx, 0x10
jb 0x40268f
mov edx, dword [ebp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402685
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026b2
push ecx
push edx
call fcn.0056eea1
add esp, 8
mov al, byte [ebp - 0x14dd]
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.0056ee93
mov esp, ebp
pop ebp
ret 0x58
call fcn.0057504f
int3