Function at 0x100013f9
Capabilities:
Check internet connectivity via wininet
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1a8
mov eax, esp
mov dword [eax], 0x7d0b61
mov eax, dword [sym.imp.KERNEL32.dll_ResetEvent]
call eax
sub esp, 4
xor ecx, ecx
lea edx, [esp + 0xe0]
lea esi, [esp + 0xb0]
lea edi, [esp + 0xac]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ecx
jmp 0x100014a3
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
call eax
mov ecx, esp
lea edx, [esp + 0x198]
mov dword [ecx + 0x10], edx
lea edx, [esp + 0x190]
mov dword [ecx + 0xc], edx
lea edx, [esp + 0xc0]
mov dword [ecx + 8], edx
mov dword [ecx + 4], edx
mov dword [ecx], 0xf05a83
mov ecx, dword [sym.imp.KERNEL32.dll_GetThreadTimes]
mov dword [esp + 0x94], eax
call ecx
sub esp, 0x14
mov dword [esp + 0x90], eax
jmp 0x10001581
mov eax, dword [esp + 0x98]
mov ecx, esp
lea edx, [esp + 0xc8]
mov dword [ecx + 8], edx
mov dword [ecx + 4], edx
lea edx, [esp + 0xe0]
mov dword [ecx], edx
mov ecx, dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
mov dword [esp + 0x8c], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0x1b9509
mov ecx, dword [sym.imp.KERNEL32.dll_SetConsoleActiveScreenBuffer]
mov dword [esp + 0x88], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx + 8], 0xf04
mov dword [ecx + 4], 0xe45
mov dword [ecx], 0xad9f8
mov ecx, dword [sym.imp.USER32.dll_GetMenuState]
mov dword [esp + 0x84], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0xab8406
mov ecx, dword [sym.imp.ADVAPI32.dll_IsTokenRestricted]
mov dword [esp + 0x80], eax
call ecx
sub esp, 4
mov ecx, dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [esp + 0x7c], eax
call ecx
xor eax, eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x78]
mov ecx, 0xaaaaaaab
mov dword [esp + 0x74], eax
mul ecx
shr edx, 3
imul eax, edx, 0xc
mov ecx, dword [esp + 0x74]
sub ecx, eax
mov eax, ecx
sub eax, 1
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], eax
je 0x10001455
jmp 0x10001572
mov eax, dword [esp + 0x70]
sub eax, 7
mov dword [esp + 0x68], eax
jne 0x10001597
jmp 0x10001581
mov eax, esp
mov dword [eax], 0x72e147
mov eax, dword [sym.imp.ole32.dll_OleDestroyMenuDescriptor]
call eax
sub esp, 4
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x74]
add eax, 1
cmp eax, 0x16f
mov dword [esp + 0x78], eax
jne 0x10001542
xor eax, eax
mov ecx, esp
mov dword [ecx], 0xfd2ea2
mov ecx, dword [sym.imp.USER32.dll_DeregisterShellHookWindow]
mov dword [esp + 0x60], eax
call ecx
sub esp, 4
xor ecx, ecx
mov edx, dword [esp + 0x8c]
sub edx, 0xa
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], edx
je 0x100016bd
jmp 0x100015e4
mov eax, dword [esp + 0x8c]
sub eax, 0x57
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], ecx
jne 0x10001701
jmp 0x10001602
mov word [esp + 0xbc], 0x13
mov dword [esp + 0x1a0], 0x33f
mov eax, esp
lea ecx, [esp + 0x1a0]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
lea edx, [esp + 0xbc]
mov dword [eax + 4], edx
mov dword [eax + 8], 0x73f
mov dword [eax], 0xe42609
mov eax, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputAttribute]
call eax
sub esp, 0x14
mov ecx, esp
mov dword [ecx], 0x263
mov ecx, dword [sym.imp.KERNEL32.dll_InitAtomTable]
mov dword [esp + 0x48], eax
call ecx
sub esp, 4
mov byte [esp + 0xbf], 7
mov word [esp + 0xde], 0xc
mov ecx, esp
lea edx, [esp + 0xde]
mov dword [ecx + 0xc], edx
lea edx, [esp + 0xbf]
mov dword [ecx + 8], edx
mov dword [ecx + 0x14], 0xdac55e
mov dword [ecx + 0x10], 0xa8e
mov dword [ecx + 4], 0xa8e
mov dword [ecx], 0xb68
mov ecx, dword [sym.imp.USER32.dll_ToAsciiEx]
mov dword [esp + 0x44], eax
call ecx
sub esp, 0x18
mov dword [esp + 0x40], eax
mov dword [esp + 0x1a4], 0x4c2
mov eax, esp
lea ecx, [esp + 0x1a4]
mov dword [eax], ecx
mov dword [eax + 4], 0x4c2
mov eax, dword [sym.imp.WININET.dll_InternetGetConnectedState]
call eax
sub esp, 8
mov ecx, esp
mov dword [ecx], 0x4eae07
mov ecx, dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov dword [esp + 0x3c], eax
call ecx
sub esp, 4
mov dword [esp + 0x38], eax
jmp 0x1000177f
mov eax, dword [esp + 0x4c]
mov ecx, esp
mov dword [ecx + 4], 0x51a
mov dword [ecx], 0xd85eda
mov ecx, dword [sym.imp.GDI32.dll_GetNearestColor]
mov dword [esp + 0x34], eax
call ecx
sub esp, 8
mov ecx, dword [esp + 0x34]
add ecx, 1
mov edx, dword [sym.imp.USER32.dll_GetOpenClipboardWindow]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
call edx
mov ecx, esp
mov dword [ecx], 0xae37d
mov ecx, dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [esp + 0x28], eax
call ecx
sub esp, 4
mov ecx, esp
mov dword [ecx], 0xe50d9e
mov ecx, dword [sym.imp.KERNEL32.dll_DeleteTimerQueue]
mov dword [esp + 0x24], eax
call ecx
sub esp, 4
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xa
mov dword [esp + 0x20], eax
mov dword [esp + 0x4c], ecx
jne 0x10001701
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb0], 0
mov eax, esp
mov ecx, dword [esp + 0xa0]
mov dword [eax + 4], ecx
mov dword [eax], str._U8_ZwDc
mov eax, dword [sym.imp.ADVAPI32.dll_RemoveUsersFromEncryptedFile]
call eax
sub esp, 8
mov ecx, dword [esp + 0x8c]
add ecx, 1
cmp ecx, 0x13
mov dword [esp + 0x1c], eax
mov dword [esp + 0x98], ecx
jne 0x100014a3
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret