Function at 0x490db0
Capabilities:
Check http status code
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x68f8
call fcn.005514a0
mov eax, dword [0x60f074]
xor eax, esp
mov dword [esp + 0x68f4], eax
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], esi
push edi
test esi, esi
je 0x490eea
xor edi, edi
lea eax, [esp + 0xc8]
push 0x208
xorps xmm0, xmm0
mov dword [esp + 0x38], edi
push edi
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x54], edi
movaps xmmword [esp + 0xac], xmm0
movaps xmmword [esp + 0xbc], xmm0
call fcn.0056f6e0
add esp, 0xc
lea eax, [esp + 0x4d0]
push 0x208
push edi
push eax
call fcn.0056f6e0
add esp, 0xc
lea eax, [esp + 0x6d8]
push 0x208
push edi
push eax
call fcn.0056f6e0
add esp, 0xc
lea eax, [esp + 0x28f0]
push 0x2000
push edi
push eax
call fcn.0056f6e0
mov edx, dword [esi + 0x28]
lea eax, [esp + 0x6e4]
mov dword [esp + 0x68], eax
mov ecx, edx
lea eax, [esp + 0x28fc]
mov dword [esp + 0x50], edi
xorps xmm0, xmm0
mov dword [esp + 0x84], eax
add esp, 0xc
movlpd qword [esp + 0x50], xmm0
lea eax, [ecx + 2]
mov dword [esp + 0x58], edi
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
mov dword [esp + 0x74], edi
movlpd qword [esp + 0x80], xmm0
mov dword [esp + 0x4c], 0x3c
mov dword [esp + 0x60], 0x104
mov dword [esp + 0x7c], 0x1000
mov dword [esp + 0x20], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x490ec0
sub ecx, dword [esp + 0x20]
lea eax, [esp + 0x4c]
push eax
push 0
sar ecx, 1
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x490f03
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x68f4]
xor ecx, esp
call fcn.00550156
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x58]
cmp eax, 4
jne 0x490f16
mov dword [esp + 0x40], 1
jmp 0x490f1f
cmp eax, 3
jne 0x490eea
mov dword [esp + 0x40], edi
movzx eax, word [esp + 0x64]
push 0
push 0
push 0
push 0
push 0x5cb60c
mov dword [esp + 0x3c], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x490f51
mov eax, 0xfffffffd
mov dword [esp + 0x1c], eax
jmp 0x491681
push 0
push 0
push 3
push 0
push 0
push dword [esp + 0x3c]
lea ecx, [esp + 0x6f0]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, eax
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x49163b
mov edi, 0x80048200
mov eax, dword [esi + 0x88]
cmp eax, 1
jne 0x490fb0
movq xmm0, qword [str.POST]
mov ax, word [0x5d46a8]
movq qword [esp + 0xa0], xmm0
mov word [esp + 0xa8], ax
jmp 0x49107d
cmp eax, 2
je 0x491065
cmp dword [esi + 0x38], 0
jbe 0x491065
cmp dword [esi + 0x34], 0
je 0x491065
mov ax, word [0x5d46a8]
mov ecx, dword [esi + 0x40]
sub ecx, dword [esi + 0x3c]
movq xmm0, qword [str.POST]
mov word [esp + 0xa8], ax
mov eax, 0x2aaaaaab
imul ecx
movq qword [esp + 0xa0], xmm0
mov ecx, dword [esp + 0x24]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x49107d
movups xmm0, xmmword [0x5d4990]
movups xmmword [esp + 0xc8], xmm0
movups xmm0, xmmword [0x5d49a0]
movups xmmword [esp + 0xd8], xmm0
movups xmm0, xmmword [0x5d49b0]
movups xmmword [esp + 0xe8], xmm0
movups xmm0, xmmword [0x5d49c0]
movups xmmword [esp + 0xf8], xmm0
movups xmm0, xmmword [0x5d49d0]
movups xmmword [esp + 0x108], xmm0
movups xmm0, xmmword [0x5d49e0]
movups xmmword [esp + 0x118], xmm0
jmp 0x49107d
mov eax, dword [0x5d46bc]
mov dword [esp + 0xa0], eax
mov eax, dword [0x5d46c0]
mov dword [esp + 0xa4], eax
cmp dword [esi + 0x90], 0
mov eax, 0x800c8200
cmove eax, edi
cmp dword [esp + 0x40], 0
je 0x4910a6
or eax, 0x800000
cmp dword [esi + 0x8c], 0
jne 0x4910a6
or eax, 0x1000
push 0
push eax
push 0
push 0
push str.HTTP_1.0
lea eax, [esp + 0x2904]
push eax
lea eax, [esp + 0xb8]
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x491631
cmp dword [esi + 0x20], 0
je 0x4910fc
cmp dword [esi + 0x24], 8
lea ecx, [esi + 0x10]
jb 0x4910e4
mov ecx, dword [ecx]
push ecx
lea eax, [esp + 0x4d4]
push str.Accept:___r_nUser_Agent:__s_r_n
push eax
call fcn.00490620
add esp, 0xc
jmp 0x491111
lea eax, [esp + 0x4d0]
push str.Accept:___r_nUser_Agent:_Mozilla___5.0__Windows_NT_10.0__WOW64__AppleWebKit___537.36__KHTML__like_Gecko__Chrome___55.0.2883.87_Safari___537.36_r_n
push eax
call fcn.00490620
add esp, 8
push 0xa0000000
push 0xffffffffffffffff
lea eax, [esp + 0x4d8]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov eax, dword [esp + 0x18]
mov esi, dword [esi + 0x3c]
cmp esi, dword [eax + 0x40]
je 0x4911bb
nop word [eax + eax]
push esi
lea ecx, [esp + 0x8c]
call fcn.004035d0
cmp dword [esp + 0x9c], 0x10
lea eax, [esp + 0x88]
push 0x20000000
cmovae eax, dword [esp + 0x8c]
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov edx, dword [esp + 0x9c]
cmp edx, 0x10
jb 0x4911af
mov ecx, dword [esp + 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4911a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4916ac
push edx
push ecx
call fcn.0055053d
add esp, 8
mov eax, dword [esp + 0x18]
add esi, 0x18
cmp esi, dword [eax + 0x40]
jne 0x491140
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 4
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [esp + 0x14], 0x3180
lea eax, [esp + 0x14]
push 4
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [esi + 0x98]
test eax, eax
je 0x491287
imul eax, eax, 0x3e8
push 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 2
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [esp + 0x14]
push eax
push 5
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [esp + 0x14]
push eax
push 6
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [esp + 0x14]
push eax
push 7
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [esp + 0x14]
push eax
push 8
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [esp + 0x14]
push eax
push 0xb
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [esp + 0x14]
push eax
push 6
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [esp + 0xc8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x491291
push dword [esi + 0x38]
sub eax, edx
push dword [esi + 0x34]
sar eax, 1
push eax
lea eax, [esp + 0xd4]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x49130e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
jne 0x49130e
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 4
push eax
lea eax, [esp + 0x34]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [esp + 0x30], 0x100
lea eax, [esp + 0x30]
push 4
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [esp + 0x34]
cmp eax, dword [esi + 0x9c]
jl 0x4911c3
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x491643
cmp dword [esp + 0x2c], 0
je 0x491553
push 0x200
lea eax, [esp + 0x2d4]
push 0
push eax
call fcn.0056f6e0
add esp, 0xc
mov dword [esp + 0x2c], 0x100
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], 0
push 0
push eax
lea eax, [esp + 0x2d8]
push eax
push 0x13
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x491381
lea eax, [esp + 0x2d0]
push eax
call fcn.0058198d
add esp, 4
jmp 0x491383
xor eax, eax
cmp eax, 0xc8
je 0x4913e0
cmp eax, 0x197
je 0x491398
cmp eax, 0x193
jne 0x4913d7
cmp dword [esp + 0x44], 0
jne 0x4913d7
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4913b5
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x44], 1
test eax, eax
je 0x4913cc
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
mov dword [esp + 0x3c], eax
jmp 0x490f51
mov dword [esp + 0x1c], eax
jmp 0x491643
push 0
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2d8]
push eax
push 5
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x491412
lea eax, [esp + 0x2d0]
push eax
call fcn.0058198d
add esp, 4
mov dword [esp + 0x20], eax
jmp 0x491418
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
lea eax, [esi + 0x48]
mov ecx, esp
mov dword [esp + 0x30], ecx
push ecx
push eax
call fcn.00491bf0
lea edx, [esi + 0x50]
mov ecx, edi
call fcn.00490a20
add esp, 8
mov dword [esp + 0x14], 0
xor esi, esi
push 0x2001
lea eax, [esp + 0x48f4]
push 0
push eax
call fcn.0056f6e0
add esp, 0xc
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push 0x2000
lea eax, [esp + 0x48f8]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4914f6
mov eax, dword [esp + 0x10]
add eax, esi
push eax
push dword [esp + 0x18]
call fcn.00577fe9
push dword [esp + 0x18]
lea ecx, [esp + 0x48fc]
mov dword [esp + 0x20], eax
push ecx
lea ecx, [esi + eax]
push ecx
call fcn.0056ebe0
add esi, dword [esp + 0x24]
add esp, 0x14
cmp esi, 0x3700000
jbe 0x4914c3
mov eax, dword [esp + 0x18]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esp + 0x18]
push 0
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4914e3
cmp dword [esp + 0x10], 0
jne 0x491442
jmp 0x491512
push 0
push dword [esp + 0x18]
call fcn.00577fe9
add esp, 8
jmp 0x491643
mov eax, dword [esp + 0x20]
test eax, eax
je 0x49160e
cmp esi, eax
jne 0x49160e
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x49152c
push dword [eax + 0x30]
push esi
push dword [esp + 0x1c]
push 0xc8
call ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], 1
test eax, eax
je 0x491547
push 0
push eax
call fcn.00577fe9
add esp, 8
mov esi, dword [esp + 0x18]
mov dword [esp + 0x1c], 0xc8
push 0x1001
lea eax, [esp + 0x8e4]
push 0
push eax
call fcn.0056f6e0
add esp, 0xc
mov dword [esp + 0x38], 0x1000
lea eax, [esp + 0x38]
push 0
push eax
lea eax, [esp + 0x8e8]
push eax
push 0x80000016
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea ecx, [esp + 0x8e0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x491597
sub ecx, edx
lea eax, [esp + 0x8e0]
push ecx
push eax
lea ecx, [esi + 0x58]
call fcn.00403690
push 0x1001
lea eax, [esp + 0x18ec]
push 0
push eax
call fcn.0056f6e0
add esp, 0xc
mov dword [esp + 0x38], 0x1000
lea eax, [esp + 0x38]
push 0
push eax
lea eax, [esp + 0x18f0]
push eax
push 0x16
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea ecx, [esp + 0x18e8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4915f2
sub ecx, edx
lea eax, [esp + 0x18e8]
push ecx
push eax
lea ecx, [esi + 0x70]
call fcn.00403690
jmp 0x491643
mov dword [esp + 0x1c], 0xfffffffa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x491643
push 0
push eax
call fcn.00577fe9
add esp, 8
jmp 0x491643
mov dword [esp + 0x1c], 0xfffffffb
jmp 0x49165a
mov dword [esp + 0x1c], 0xfffffffc
test edi, edi
je 0x491656
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
mov esi, dword [esp + 0x18]
jmp 0x491660
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x49166b
push eax
call edi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x491676
push eax
call edi
cmp dword [esp + 0x48], 0
jne 0x491692
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x491692
push dword [esi + 0x30]
push 0
push 0
push eax
call ecx
mov ecx, dword [esp + 0x68fc]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.00550156
mov esp, ebp
pop ebp
ret 4
call fcn.00572795
int3