Function at 0x42a8f0
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.004d2490
mov eax, dword [0x53f084]
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 0x42aa2a
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.004d43f0
add esp, 0xc
lea eax, [esp + 0x4d0]
push 0x208
push edi
push eax
call fcn.004d43f0
add esp, 0xc
lea eax, [esp + 0x6d8]
push 0x208
push edi
push eax
call fcn.004d43f0
add esp, 0xc
lea eax, [esp + 0x28f0]
push 0x2000
push edi
push eax
call fcn.004d43f0
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 0x42aa00
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 0x42aa43
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x68f4]
xor ecx, esp
call fcn.004d170a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x58]
cmp eax, 4
jne 0x42aa56
mov dword [esp + 0x40], 1
jmp 0x42aa5f
cmp eax, 3
jne 0x42aa2a
mov dword [esp + 0x40], edi
movzx eax, word [esp + 0x64]
push 0
push 0
push 0
push 0
push 0x513480
mov dword [esp + 0x3c], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esp + 0x3c], eax
test eax, eax
jne 0x42aa91
mov eax, 0xfffffffd
mov dword [esp + 0x1c], eax
jmp 0x42b1c1
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 0x42b17b
mov edi, 0x80048200
mov eax, dword [esi + 0x88]
cmp eax, 1
jne 0x42aaf0
movq xmm0, qword [str.POST]
mov ax, word [0x51c778]
movq qword [esp + 0xa0], xmm0
mov word [esp + 0xa8], ax
jmp 0x42abbd
cmp eax, 2
je 0x42aba5
cmp dword [esi + 0x38], 0
jbe 0x42aba5
cmp dword [esi + 0x34], 0
je 0x42aba5
mov ax, word [0x51c778]
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 0x42abbd
movups xmm0, xmmword [str.Content_Type:_application_x_www_form_urlencoded]
movups xmmword [esp + 0xc8], xmm0
movups xmm0, xmmword [0x51c790]
movups xmmword [esp + 0xd8], xmm0
movups xmm0, xmmword [0x51c7a0]
movups xmmword [esp + 0xe8], xmm0
movups xmm0, xmmword [0x51c7b0]
movups xmmword [esp + 0xf8], xmm0
movups xmm0, xmmword [0x51c7c0]
movups xmmword [esp + 0x108], xmm0
movups xmm0, xmmword [0x51c7d0]
movups xmmword [esp + 0x118], xmm0
jmp 0x42abbd
mov eax, dword [0x51c768]
mov dword [esp + 0xa0], eax
mov eax, dword [0x51c76c]
mov dword [esp + 0xa4], eax
cmp dword [esi + 0x90], 0
mov eax, 0x800c8200
cmove eax, edi
cmp dword [esp + 0x40], 0
je 0x42abe6
or eax, 0x800000
cmp dword [esi + 0x8c], 0
jne 0x42abe6
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 0x42b171
cmp dword [esi + 0x20], 0
je 0x42ac3c
cmp dword [esi + 0x24], 8
lea ecx, [esi + 0x10]
jb 0x42ac24
mov ecx, dword [ecx]
push ecx
lea eax, [esp + 0x4d4]
push str.Accept:___r_nUser_Agent:__s_r_n
push eax
call fcn.0042a150
add esp, 0xc
jmp 0x42ac51
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.0042a150
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 0x42acfb
nop word [eax + eax]
push esi
lea ecx, [esp + 0x8c]
call fcn.00404370
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 0x42acef
mov ecx, dword [esp + 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42ace5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42b1ec
push edx
push ecx
call fcn.004d1750
add esp, 8
mov eax, dword [esp + 0x18]
add esi, 0x18
cmp esi, dword [eax + 0x40]
jne 0x42ac80
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 0x42adc7
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 0x42add1
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 0x42ae4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
jne 0x42ae4e
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 0x42ad03
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42b183
cmp dword [esp + 0x2c], 0
je 0x42b093
push 0x200
lea eax, [esp + 0x2d4]
push 0
push eax
call fcn.004d43f0
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 0x42aec1
lea eax, [esp + 0x2d0]
push eax
call fcn.004e226d
add esp, 4
jmp 0x42aec3
xor eax, eax
cmp eax, 0xc8
je 0x42af20
cmp eax, 0x197
je 0x42aed8
cmp eax, 0x193
jne 0x42af17
cmp dword [esp + 0x44], 0
jne 0x42af17
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42aef5
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x44], 1
test eax, eax
je 0x42af0c
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
mov dword [esp + 0x3c], eax
jmp 0x42aa91
mov dword [esp + 0x1c], eax
jmp 0x42b183
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 0x42af52
lea eax, [esp + 0x2d0]
push eax
call fcn.004e226d
add esp, 4
mov dword [esp + 0x20], eax
jmp 0x42af58
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.0042b730
lea edx, [esi + 0x50]
mov ecx, edi
call fcn.0042a560
add esp, 8
mov dword [esp + 0x14], 0
xor esi, esi
push 0x2001
lea eax, [esp + 0x48f4]
push 0
push eax
call fcn.004d43f0
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 0x42b036
mov eax, dword [esp + 0x10]
add eax, esi
push eax
push dword [esp + 0x18]
call fcn.004db877
push dword [esp + 0x18]
lea ecx, [esp + 0x48fc]
mov dword [esp + 0x20], eax
push ecx
lea ecx, [esi + eax]
push ecx
call fcn.004d38f0
add esi, dword [esp + 0x24]
add esp, 0x14
cmp esi, 0x3700000
jbe 0x42b003
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 0x42b023
cmp dword [esp + 0x10], 0
jne 0x42af82
jmp 0x42b052
push 0
push dword [esp + 0x18]
call fcn.004db877
add esp, 8
jmp 0x42b183
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42b14e
cmp esi, eax
jne 0x42b14e
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x42b06c
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 0x42b087
push 0
push eax
call fcn.004db877
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.004d43f0
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 0x42b0d7
sub ecx, edx
lea eax, [esp + 0x8e0]
push ecx
push eax
lea ecx, [esi + 0x58]
call fcn.00405250
push 0x1001
lea eax, [esp + 0x18ec]
push 0
push eax
call fcn.004d43f0
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 0x42b132
sub ecx, edx
lea eax, [esp + 0x18e8]
push ecx
push eax
lea ecx, [esi + 0x70]
call fcn.00405250
jmp 0x42b183
mov dword [esp + 0x1c], 0xfffffffa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42b183
push 0
push eax
call fcn.004db877
add esp, 8
jmp 0x42b183
mov dword [esp + 0x1c], 0xfffffffb
jmp 0x42b19a
mov dword [esp + 0x1c], 0xfffffffc
test edi, edi
je 0x42b196
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
mov esi, dword [esp + 0x18]
jmp 0x42b1a0
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42b1ab
push eax
call edi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x42b1b6
push eax
call edi
cmp dword [esp + 0x48], 0
jne 0x42b1d2
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x42b1d2
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.004d170a
mov esp, ebp
pop ebp
ret 4
call fcn.004da89d
int3