Function at 0x4097d0
Capabilities:
Check internet connectivity via wininet
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a3f0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x581980]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp + 8]
sub eax, 0xa
mov esi, ecx
mov dword [ebp - 0x4c], esi
je 0x40999c
sub eax, 3
je 0x409845
dec eax
jne 0x409a1c
mov eax, dword [esi + 4]
push 0xe
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 4]
push 0
push 0
push 0x471
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x409a1c
push 0
push 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
cmp dword [esi + 0x4fc], eax
je 0x409a1c
mov dword [esi + 0x4fc], eax
test eax, eax
je 0x409a1c
push esi
call fcn.00409c80
mov eax, dword [esi + 0x3e8]
test eax, eax
jne 0x40993d
mov edi, 1
push edi
push 0x5649e0
lea ebx, [esi + 0x230]
call fcn.0040b100
mov ecx, dword [esi + 4]
mov dword [esi + 0x3e8], eax
mov dword [eax + 0x600], ecx
mov eax, dword [esi + 0x3e8]
cmp dword [eax + 0x5fc], edi
je 0x4098b6
mov dword [eax + 0x5fc], edi
mov eax, dword [esi + 0x3e8]
cmp dword [eax + 0x5f8], edi
je 0x4098ca
mov dword [eax + 0x5f8], edi
mov eax, dword [esi + 0x3e4]
mov ecx, dword [esi + 0x3e8]
call fcn.00419990
mov edi, dword [esi + 0x3e8]
mov ecx, str.about:blank
call fcn.00419230
lea edx, [esi + 0x400]
push edx
lea ebx, [ebp - 0x2c]
call fcn.004570c0
add esp, 4
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x40990c
mov eax, dword [eax]
mov edi, dword [esi + 0x3e8]
mov ecx, eax
call fcn.00419230
lea esi, [ebp - 0x2c]
mov edi, eax
call fcn.00402850
test edi, edi
js 0x409a1c
mov eax, dword [ebp - 0x4c]
mov dword [eax + 0x50c], 1
jmp 0x409a1c
push eax
call fcn.004192e0
lea ecx, [esi + 0x400]
push ecx
lea ebx, [ebp - 0x48]
call fcn.004570c0
add esp, 4
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x409964
mov eax, dword [eax]
mov edi, dword [esi + 0x3e8]
mov ecx, eax
call fcn.00419230
lea esi, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.00402850
sub esp, 0x1c
mov eax, str.ReConnect
mov ecx, esp
mov dword [ebp - 0x4c], esp
call fcn.00403be0
call fcn.00405dc0
jmp 0x409a1c
mov edx, dword [esi + 4]
push 0xa
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4099c2
mov eax, dword [esi + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 1
call edi
mov ebx, dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 0
call edi
push eax
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f2889
mov esp, ebp
pop ebp
ret 8