Function at 0x4a1240
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
mov eax, 0x1814
call fcn.004e5e30
mov eax, dword [0x557b14]
xor eax, esp
mov dword [esp + 0x180c], eax
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x4a154b
mov ecx, dword [0x577b5c]
push 0x400
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [0x57650c]
mov edx, dword [0x577b50]
cmp dword [edx + 0x30], 0
jne 0x4a12b5
push 0
push 0
mov ecx, str.cannsu
call fcn.004a5a00
mov ecx, str.funav
mov esi, eax
call fcn.004a5a00
mov ecx, dword [0x577b58]
push ecx
jmp 0x4a156c
lea eax, [esp + 0x18]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a12c0
sub eax, edx
sar eax, 1
cmp eax, 6
jb 0x4a1528
lea ecx, [esp + 0x18]
call fcn.004a0f00
test al, al
je 0x4a1528
push 0
push 0
push 0
push 1
push 0x543040
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esp + 0x14], eax
je 0x4a154b
mov edx, dword [0x577b50]
mov eax, dword [edx + 0x64]
lea ecx, [esp + 0x818]
push ecx
push eax
call fcn.004a9e70
add esp, 8
test al, al
push 0
push 0
jne 0x4a133e
mov ecx, str.cannsu
call fcn.004a5a00
mov ecx, str.funav
jmp 0x4a155e
mov eax, dword [0x577b50]
mov eax, dword [eax + 0xa4]
mov esi, dword [0x5764c4]
push 0xffffffffffffffff
push eax
push 1
push 0
call esi
lea ebp, [eax + 1]
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ae61a
add esp, 4
push ebp
mov edi, eax
mov eax, dword [0x577b50]
mov ecx, dword [eax + 0xa4]
push edi
push 0xffffffffffffffff
push ecx
push 1
push 0
call esi
mov edx, dword [0x577b50]
mov eax, dword [edx + 0xa8]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
call esi
lea ebx, [eax + 1]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ae61a
add esp, 4
push ebx
mov ebp, eax
mov eax, dword [0x577b50]
mov ecx, dword [eax + 0xa8]
push ebp
push 0xffffffffffffffff
push ecx
push 1
push 0
call esi
mov edx, dword [0x577b50]
mov eax, dword [edx + 0xac]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call esi
add eax, 1
xor ecx, ecx
mov dword [esp + 0x10], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ae61a
mov ebx, eax
mov eax, dword [esp + 0x14]
add esp, 4
mov ecx, dword [0x577b50]
mov edx, dword [ecx + 0xac]
push eax
push ebx
push 0xffffffffffffffff
push edx
push 1
push 0
call esi
mov eax, dword [0x577b50]
mov ecx, dword [eax + 0x30]
mov esi, dword [eax + 0x64]
lea edx, [esp + 0x18]
mov dword [esp + 0x10], ecx
push edx
lea ecx, [esp + 0x81c]
push ecx
call fcn.004a00d0
mov edx, dword [esp + 0x18]
neg al
sbb eax, eax
neg eax
push eax
push ebx
push ebp
push edi
push esi
push edx
lea eax, [esp + 0x1038]
push 0x400
push eax
call fcn.00520ca9
push edi
call fcn.004e0f9f
add esp, 0x2c
push ebp
call fcn.004e0f9f
add esp, 4
push ebx
call fcn.004e0f9f
mov edi, dword [esp + 0x18]
add esp, 4
push 0
push 0x20000000
push 0
push 0
lea ecx, [esp + 0x1028]
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, eax
test esi, esi
push 6
je 0x4a14f8
push 0
mov ecx, str.congrats
call fcn.004a5a00
mov ecx, str.succsub
mov ebp, eax
call fcn.004a5a00
mov edx, dword [0x577b58]
push edx
mov ecx, ebp
mov edx, eax
call fcn.004ab850
add esp, 0xc
push esi
call ebx
call fcn.004a11d0
push edi
call ebx
jmp 0x4a1578
push 0x10
mov ecx, str.cnsm
call fcn.004a5a00
mov ecx, str.cnrcmms
mov esi, eax
call fcn.004a5a00
mov ecx, dword [0x577b58]
push ecx
mov ecx, esi
mov edx, eax
call fcn.004ab850
add esp, 0xc
push edi
call ebx
jmp 0x4a1578
push 0
push 0
mov ecx, str.cannsu
call fcn.004a5a00
mov ecx, str.validemail
mov esi, eax
call fcn.004a5a00
mov ecx, dword [0x577b58]
push ecx
jmp 0x4a156c
push 6
push 0x10
mov ecx, str.cnsm
call fcn.004a5a00
mov ecx, str.tfric
mov esi, eax
call fcn.004a5a00
mov edx, dword [0x577b58]
push edx
mov ecx, esi
mov edx, eax
call fcn.004ab850
add esp, 0xc
mov ecx, dword [esp + 0x181c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e0010
add esp, 0x1814
ret