Function at 0x4a2810
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
mov eax, 0x68e4
call fcn.004fa330
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x6868], ebx
push esi
push edi
test ebx, ebx
je 0x4a294a
xor eax, eax
xorps xmm0, xmm0
push 0x208
push eax
mov dword [ebp - 0x6878], eax
xor esi, esi
mov dword [ebp - 0x689c], eax
lea eax, [ebp - 0x22c]
push eax
mov dword [ebp - 0x6880], esi
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call fcn.004bcaf0
push 0x208
lea eax, [ebp - 0x634]
push esi
push eax
call fcn.004bcaf0
push 0x208
lea eax, [ebp - 0x83c]
push esi
push eax
call fcn.004bcaf0
push 0x2000
lea eax, [ebp - 0x6848]
push esi
push eax
call fcn.004bcaf0
mov edx, dword [ebx + 0x28]
lea eax, [ebp - 0x83c]
xorps xmm0, xmm0
mov dword [ebp - 0x68d4], eax
mov ecx, edx
mov dword [ebp - 0x6890], esi
lea eax, [ebp - 0x6848]
movlpd qword [ebp - 0x68e0], xmm0
add esp, 0x30
mov dword [ebp - 0x68d8], esi
movlpd qword [ebp - 0x68cc], xmm0
movlpd qword [ebp - 0x68c4], xmm0
lea edi, [ecx + 2]
mov dword [ebp - 0x68bc], esi
movlpd qword [ebp - 0x68b0], xmm0
mov dword [ebp - 0x68e4], 0x3c
mov dword [ebp - 0x68d0], 0x104
mov dword [ebp - 0x68b8], eax
mov dword [ebp - 0x68b4], 0x1000
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2920
lea eax, [ebp - 0x68e4]
sub ecx, edi
push eax
push 0
sar ecx, 1
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x4a2960
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e99c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x68d8]
cmp eax, 4
jne 0x4a2977
mov dword [ebp - 0x688c], 1
jmp 0x4a2982
cmp eax, 3
jne 0x4a294a
mov dword [ebp - 0x688c], esi
movzx eax, word [ebp - 0x68cc]
push 0
push 0
push 0
push 0
push 0x51c79c
mov dword [ebp - 0x6894], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x6888], edi
test edi, edi
jne 0x4a29b8
mov edi, 0xfffffffd
jmp 0x4a337e
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0x6894]
lea eax, [ebp - 0x83c]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, eax
mov dword [ebp - 0x6874], ecx
test ecx, ecx
je 0x4a33a4
mov ebx, 0x80048200
nop dword [eax + eax]
mov edi, dword [ebp - 0x6868]
mov eax, dword [edi + 0x88]
cmp eax, 1
jne 0x4a2a1d
movq xmm0, qword [0x50cf20]
mov ax, word [0x50cf28]
movq qword [ebp - 0x24], xmm0
mov word [ebp - 0x1c], ax
jmp 0x4a2ad6
cmp eax, 2
je 0x4a2ac6
cmp dword [edi + 0x38], 0
jbe 0x4a2ac6
cmp dword [edi + 0x34], 0
je 0x4a2ac6
mov ax, word [0x50cf28]
mov ecx, dword [edi + 0x40]
sub ecx, dword [edi + 0x3c]
movq xmm0, qword [0x50cf20]
mov word [ebp - 0x1c], ax
mov eax, 0x2aaaaaab
imul ecx
movq qword [ebp - 0x24], xmm0
mov ecx, dword [ebp - 0x6874]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4a2ad6
movups xmm0, xmmword [str.Content_Type:_application_x_www_form_urlencoded]
movups xmmword [ebp - 0x22c], xmm0
movups xmm0, xmmword [0x50cf48]
movups xmmword [ebp - 0x21c], xmm0
movups xmm0, xmmword [0x50cf58]
movups xmmword [ebp - 0x20c], xmm0
movups xmm0, xmmword [0x50cf68]
movups xmmword [ebp - 0x1fc], xmm0
movups xmm0, xmmword [0x50cf78]
movups xmmword [ebp - 0x1ec], xmm0
movups xmm0, xmmword [0x50cf88]
movups xmmword [ebp - 0x1dc], xmm0
jmp 0x4a2ad6
mov eax, dword [0x50cf2c]
mov dword [ebp - 0x24], eax
mov eax, dword [0x50cf30]
mov dword [ebp - 0x20], eax
cmp dword [edi + 0x90], 0
mov eax, 0x800c8200
cmove eax, ebx
cmp dword [ebp - 0x688c], 0
je 0x4a2b01
or eax, 0x800000
cmp dword [edi + 0x8c], 0
jne 0x4a2b01
or eax, 0x1000
push 0
push eax
push 0
push 0
push str.HTTP_1.0
lea eax, [ebp - 0x6848]
push eax
lea eax, [ebp - 0x24]
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
mov dword [ebp - 0x686c], ebx
test ebx, ebx
je 0x4a334a
cmp dword [edi + 0x20], 0
je 0x4a2bc6
cmp dword [edi + 0x24], 0x10
lea ecx, [edi + 0x10]
jb 0x4a2b45
mov ecx, dword [edi + 0x10]
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x68a4], eax
lea eax, [ebp - 0x68a8]
push eax
lea eax, [ebp - 0x6860]
mov dword [ebp - 0x68a8], ecx
push eax
call fcn.004a0e60
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x4a2b72
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x634]
push str.Accept:___r_nUser_Agent:__s_r_n
push eax
call fcn.004a3630
mov edx, dword [ebp - 0x684c]
add esp, 0xc
cmp edx, 8
jb 0x4a2bda
mov ecx, dword [ebp - 0x6860]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a2bbd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a33b8
push edx
push ecx
call fcn.0048e9ad
jmp 0x4a2bd7
lea eax, [ebp - 0x634]
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.004a3630
add esp, 8
push 0xa0000000
push 0xffffffffffffffff
lea eax, [ebp - 0x634]
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov esi, dword [edi + 0x3c]
cmp esi, dword [edi + 0x40]
je 0x4a2d06
nop dword [eax + eax]
cmp dword [esi + 0x14], 0x10
mov eax, esi
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0x6850], 0
mov dword [ebp - 0x684c], 0
mov dword [ebp - 0x6864], esi
jb 0x4a2c2d
mov eax, dword [esi]
mov dword [ebp - 0x6864], eax
cmp ebx, 0x10
jae 0x4a2c4e
movups xmm0, xmmword [eax]
mov dword [ebp - 0x684c], 0xf
lea eax, [ebp - 0x6860]
movups xmmword [ebp - 0x6860], xmm0
jmp 0x4a2ca5
mov edi, ebx
lea ecx, [ebp - 0x6860]
or edi, 0xf
mov eax, 0x7fffffff
cmp edi, 0x7fffffff
cmova edi, eax
lea eax, [edi + 1]
push eax
call fcn.004208f0
lea ecx, [ebx + 1]
mov dword [ebp - 0x6860], eax
push ecx
push dword [ebp - 0x6864]
push eax
call fcn.004bcd60
add esp, 0xc
mov dword [ebp - 0x684c], edi
cmp edi, 0x10
lea eax, [ebp - 0x6860]
mov edi, dword [ebp - 0x6868]
cmovae eax, dword [ebp - 0x6860]
push 0x20000000
push 0xffffffffffffffff
mov dword [ebp - 0x6850], ebx
mov ebx, dword [ebp - 0x686c]
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov edx, dword [ebp - 0x684c]
cmp edx, 0x10
jb 0x4a2cfa
mov ecx, dword [ebp - 0x6860]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a2cf0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a33b8
push edx
push ecx
call fcn.0048e9ad
add esp, 8
add esi, 0x18
cmp esi, dword [edi + 0x40]
jne 0x4a2c00
mov eax, dword [ebp - 0x6880]
nop dword [eax]
inc eax
mov dword [ebp - 0x6864], 0
mov dword [ebp - 0x6880], eax
lea eax, [ebp - 0x6870]
push eax
lea eax, [ebp - 0x6864]
mov dword [ebp - 0x6870], 4
push eax
push 0x1f
push ebx
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x6864], 0x3180
lea eax, [ebp - 0x6864]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
push eax
push 0x1f
push ebx
call esi
mov eax, dword [edi + 0x98]
test eax, eax
je 0x4a2dd8
imul eax, eax, 0x3e8
push 4
mov dword [ebp - 0x6864], eax
lea eax, [ebp - 0x6864]
push eax
push 2
push ebx
call esi
push 4
lea eax, [ebp - 0x6864]
push eax
push 5
push ebx
call esi
push 4
lea eax, [ebp - 0x6864]
push eax
push 6
push ebx
call esi
push 4
lea eax, [ebp - 0x6864]
push eax
push 7
push ebx
call esi
push 4
lea eax, [ebp - 0x6864]
push eax
push 8
push ebx
call esi
push 4
lea eax, [ebp - 0x6864]
push eax
push 0xb
push ebx
call esi
push 4
lea eax, [ebp - 0x6864]
push eax
push 6
push ebx
call esi
lea eax, [ebp - 0x22c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a2de1
push dword [edi + 0x38]
sub eax, edx
push dword [edi + 0x34]
sar eax, 1
push eax
lea eax, [ebp - 0x22c]
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
test esi, esi
jne 0x4a2e67
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
jne 0x4a2e67
lea eax, [ebp - 0x6870]
mov dword [ebp - 0x6870], 4
push eax
lea eax, [ebp - 0x687c]
push eax
push 0x1f
push ebx
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x687c], 0x100
lea eax, [ebp - 0x687c]
push 4
push eax
push 0x1f
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [ebp - 0x6880]
cmp eax, dword [edi + 0x9c]
jl 0x4a2d10
push 0
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4a31d8
test esi, esi
je 0x4a3258
push 0x200
lea eax, [ebp - 0x42c]
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
mov dword [ebp - 0x6898], 0x100
xor esi, esi
lea eax, [ebp - 0x6898]
mov dword [ebp - 0x6864], esi
mov dword [ebp - 0x6870], esi
push esi
push eax
lea eax, [ebp - 0x42c]
push eax
push 0x13
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a2ee3
lea eax, [ebp - 0x42c]
push eax
call fcn.004cf43f
add esp, 4
mov dword [ebp - 0x6864], eax
mov esi, eax
cmp esi, 0xc8
je 0x4a3030
cmp esi, 0x197
je 0x4a2f03
cmp esi, 0x193
jne 0x4a3029
cmp dword [ebp - 0x6890], 0
jne 0x4a3029
push 0
push 0
push 0
push 0
push 0x51c79c
xor bl, bl
xor bh, bh
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
je 0x4a3029
push 0
push 0x84000000
push 0
push 0
push str.http:__profile.se.360.cn_proxyerr.php
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
je 0x4a2fd8
push 0x200
lea eax, [ebp - 0xa40]
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
mov dword [ebp - 0x68a0], 0x100
lea eax, [ebp - 0x68a0]
push 0
push eax
lea eax, [ebp - 0xa40]
push eax
push 0x13
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a2fcd
lea eax, [ebp - 0xa40]
push eax
call fcn.004cf43f
add esp, 4
cmp eax, 0x193
je 0x4a2fac
cmp eax, 0x197
jne 0x4a2fcd
push 0
push 7
push 0x2eee
push esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
sete bl
jmp 0x4a2fd1
xor bl, bl
mov bh, 1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test bl, bl
jne 0x4a2f31
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
test bh, bh
je 0x4a3023
mov esi, dword [ebp - 0x686c]
push esi
call edi
mov eax, dword [ebp - 0x6874]
push eax
call edi
mov eax, dword [ebp - 0x6888]
mov dword [ebp - 0x6890], 1
test eax, eax
je 0x4a3016
push eax
call edi
xor edi, edi
mov dword [ebp - 0x6888], edi
jmp 0x4a29b8
mov esi, dword [ebp - 0x6864]
mov edi, esi
jmp 0x4a31da
push 0
lea eax, [ebp - 0x6898]
push eax
lea eax, [ebp - 0x42c]
push eax
push 5
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a3064
lea eax, [ebp - 0x42c]
push eax
call fcn.004cf43f
add esp, 4
mov dword [ebp - 0x6870], eax
jmp 0x4a306a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [edi + 0x50]
push eax
sub esp, 8
mov edi, esp
push 0x28
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0048e9bb
mov ecx, dword [ebp - 0x6868]
mov esi, eax
add esp, 4
mov dword [esi], esi
push dword [ebp - 0x68a0]
mov dword [esi + 4], esi
mov dword [esi + 8], esi
mov word [esi + 0xc], 0x101
mov dword [edi], esi
mov ecx, dword [ecx + 0x48]
push esi
push dword [ecx + 4]
mov ecx, edi
call fcn.004a1a10
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x6868]
mov esi, dword [edi]
mov eax, dword [eax + 0x4c]
mov dword [edi + 4], eax
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x4a3104
mov ecx, dword [edx]
cmp byte [ecx + 0xd], 0
jne 0x4a30e4
mov eax, dword [ecx]
mov edx, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4a30d8
mov dword [esi], edx
mov edx, dword [edi]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x4a30ff
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x4a30f4
mov dword [edx + 8], ecx
jmp 0x4a310b
mov dword [esi], esi
mov eax, dword [edi]
mov dword [eax + 8], eax
push ebx
call fcn.004a2390
add esp, 0x10
xor edi, edi
xor esi, esi
nop dword [eax + eax]
push 0x2001
lea eax, [ebp - 0x2840]
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
mov dword [ebp - 0x6864], 0
lea eax, [ebp - 0x6864]
push eax
push 0x2000
lea eax, [ebp - 0x2840]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4a31f6
mov eax, dword [ebp - 0x6864]
add eax, esi
push eax
push edi
call fcn.004d2417
push dword [ebp - 0x6864]
mov edi, eax
lea eax, [ebp - 0x2840]
push eax
lea ecx, [esi + edi]
push ecx
call fcn.004bcd60
add esi, dword [ebp - 0x6864]
add esp, 0x14
cmp esi, 0x3700000
jbe 0x4a31a9
mov eax, dword [ebp - 0x6868]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x6868]
push 0
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4a31cd
cmp dword [ebp - 0x6864], 0
jne 0x4a3120
jmp 0x4a3216
push 0
push edi
call fcn.004d2417
add esp, 8
xor edi, edi
mov esi, dword [ebp - 0x686c]
test esi, esi
je 0x4a334f
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call ebx
jmp 0x4a3355
mov eax, dword [ebp - 0x6870]
test eax, eax
je 0x4a331b
cmp esi, eax
jne 0x4a331b
mov dword [ebp - 0x6864], 0
mov ecx, dword [ebp - 0x6868]
mov eax, dword [ecx + 0x2c]
test eax, eax
je 0x4a322f
push dword [ecx + 0x30]
push esi
push edi
push 0xc8
call eax
mov dword [ebp - 0x689c], 1
test edi, edi
je 0x4a3248
push 0
push edi
call fcn.004d2417
add esp, 8
mov edi, dword [ebp - 0x6868]
mov dword [ebp - 0x6878], 0xc8
push 0x1001
lea eax, [ebp - 0x3844]
push 0
push eax
call fcn.004bcaf0
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea eax, [ebp - 0x6884]
add esp, 0xc
mov dword [ebp - 0x6884], 0x1000
push 0
push eax
lea eax, [ebp - 0x3844]
push eax
push 0x80000016
push ebx
call esi
lea ecx, [ebp - 0x3844]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a32a0
sub ecx, edx
lea eax, [ebp - 0x3844]
push ecx
push eax
lea ecx, [edi + 0x58]
call fcn.00420560
push 0x1001
lea eax, [ebp - 0x4848]
push 0
push eax
call fcn.004bcaf0
add esp, 0xc
mov dword [ebp - 0x6884], 0x1000
lea eax, [ebp - 0x6884]
push 0
push eax
lea eax, [ebp - 0x4848]
push eax
push 0x16
push ebx
call esi
lea ecx, [ebp - 0x4848]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a32f7
sub ecx, edx
lea eax, [ebp - 0x4848]
push ecx
push eax
lea ecx, [edi + 0x70]
call fcn.00420560
mov edi, dword [ebp - 0x6878]
jmp 0x4a31da
mov eax, 0xfffffffa
mov dword [ebp - 0x6878], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x4a33ae
push 0
push edi
call fcn.004d2417
mov edi, dword [ebp - 0x6878]
add esp, 8
jmp 0x4a31da
mov edi, 0xfffffffb
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x6874]
test eax, eax
je 0x4a3362
push eax
call ebx
mov eax, dword [ebp - 0x6888]
test eax, eax
je 0x4a336f
push eax
call ebx
cmp dword [ebp - 0x689c], 0
jne 0x4a338f
mov ebx, dword [ebp - 0x6868]
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x4a338f
push dword [ebx + 0x30]
push 0
push 0
push edi
call ecx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e99c
mov esp, ebp
pop ebp
ret 4
mov edi, 0xfffffffc
jmp 0x4a31e0
mov edi, 0xfffffffa
jmp 0x4a31da
call fcn.004c5929
int3