Function at 0x4385d0
Capabilities:
Check for foreground window switch
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45d96b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x476458]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x476458]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
je 0x43872a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x438621
sub eax, edx
sar eax, 1
je 0x43872a
mov edi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call edi
mov dword [esp + 0x18], eax
xor eax, eax
mov word [esp + 0xa4], ax
mov eax, esi
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x438663
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0xa8]
call fcn.00408f90
mov dword [esp + 0xd0], ebx
mov eax, dword [esp + 0xa4]
mov esi, 8
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 1
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x5c], 5
mov dword [esp + 0x34], ebx
cmp dword [esp + 0xb8], esi
jae 0x4386f4
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
push 0x10
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x438751
cmp dword [esp + 0xb8], esi
jb 0x43872a
mov eax, dword [esp + 0xa4]
push eax
call fcn.004410cb
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00440ba3
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], ebx
je 0x43894b
call edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
jmp 0x438774
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
jne 0x43878a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4388ff
xor ecx, ecx
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], cx
lea edx, [esp + 0x74]
push edx
lea edx, [esp + 0x8c]
mov ecx, eax
mov byte [esp + 0xd4], 1
call fcn.0043cb20
add esp, 4
call fcn.0043f5a4
mov dword [esp + 0x20], eax
call fcn.0043f363
push ebx
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.0043f698
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x4387ea
inc eax
mov dword [esi + 4], eax
lea ecx, [esp + 0x28]
call fcn.0043f6c0
mov byte [esp + 0xd0], 2
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x88]
mov eax, ecx
cmp edx, 8
jae 0x438819
lea eax, [esp + 0x88]
mov ecx, eax
mov edx, dword [esp + 0x98]
lea ecx, [ecx + edx*2]
cmp eax, ecx
je 0x43883d
lea edx, [esp + 0x20]
push edx
push eax
push ecx
lea ecx, [esp + 0x30]
push ecx
call fcn.00433820
add esp, 0x10
jmp 0x438841
mov dword [esp + 0x24], eax
mov byte [esp + 0xd0], 1
mov edi, dword [esp + 0x20]
cmp edi, ebx
je 0x43888d
push ebx
lea ecx, [esp + 0x20]
call fcn.0043f698
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x43886b
cmp eax, 0xffffffff
jae 0x43886b
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x1c]
and esi, edi
call fcn.0043f6c0
cmp esi, ebx
je 0x43888d
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0x4388a6
push 0xb
push str.firefox.exe
lea ecx, [esp + 0x90]
push ecx
jmp 0x4388d0
cmp eax, 3
jne 0x4388bc
push 0xa
push str.chrome.exe
lea edx, [esp + 0x90]
push edx
jmp 0x4388d0
cmp eax, 4
jne 0x4388de
push 0xa
push str.safari.exe
lea eax, [esp + 0x90]
push eax
call fcn.00433880
cmp eax, 0xffffffff
je 0x4388de
cmp eax, ebx
jg 0x43891d
mov byte [esp + 0xd0], bl
cmp dword [esp + 0x9c], 8
jb 0x4388ff
mov ecx, dword [esp + 0x88]
push ecx
call fcn.004410cb
add esp, 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0xa
jle 0x438770
jmp 0x43894b
lea esi, [esp + 0x88]
call fcn.004337f0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x43894b
push 0x13
push ebx
push ebx
push ebx
push ebx
push 1
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 0x7c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x78]
push ecx
call esi
cmp dword [esp + 0xb8], 8
jb 0x438979
mov edx, dword [esp + 0xa4]
push edx
call fcn.004410cb
add esp, 4
xor eax, eax
jmp 0x43872d