Function at 0x401240
Capabilities:
Copy file
Create process on windows
Create process suspended
Enumerate gui resources
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2b8
mov eax, dword [0x406004]
xor eax, esp
mov dword [esp + 0x2b4], eax
push esi
push edi
mov ecx, 0x40432c
call fcn.004011a0
test al, al
je 0x40172c
push 0x8000
push 0
push 0
push 2
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
push 0x7f02
push dword [0x40658c]
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_SetSystemCursor]
push 0x1388
push 0x1388
call dword [sym.imp.USER32.dll_SetCursorPos]
mov ecx, 0x404344
call fcn.004011a0
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test al, al
je 0x40132d
push 0x44
lea eax, [esp + 0x274]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x270], 0x44
lea eax, [esp + 0x250]
xorps xmm0, xmm0
movaps xmmword [esp + 0x250], xmm0
push eax
lea eax, [esp + 0x274]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str..JoyToKeyJoyToKey.exe
call edi
push dword [esp + 0x250]
call esi
push dword [esp + 0x254]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push str.._settings5.conf
push str.._autochanger_settings5_3.conf
call esi
push 0
push str..controls5.conf
push str.._autochangercontrols5_3.conf
call esi
push 0x44
lea eax, [esp + 0x274]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x270], 0x44
lea eax, [esp + 0x250]
xorps xmm0, xmm0
movaps xmmword [esp + 0x250], xmm0
push eax
lea eax, [esp + 0x274]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.._retrofe_retrofe.exe
call edi
push 0xffffffffffffffff
push dword [esp + 0x254]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x258]
push 0x401140
call dword [sym.imp.USER32.dll_EnumWindows]
push dword [esp + 0x250]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x254]
call esi
push 0
push 2
mov dword [esp + 0x28], 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov esi, eax
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x20]
mov byte [esp + 0x17], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x401503
lea eax, [esp + 0x20]
push eax
push esi
call edi
cmp eax, 1
jne 0x401503
xor eax, eax
mov dword [esp + 0x260], 0
lea ecx, [esp + 0x44]
mov dword [esp + 0x264], 7
mov word [esp + 0x250], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401447
sub ecx, edx
lea eax, [esp + 0x44]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x258]
call fcn.00402760
cmp dword [esp + 0x264], 8
lea esi, [esp + 0x250]
mov edi, dword [esp + 0x250]
cmovae esi, edi
cmp dword [esp + 0x260], 0xb
jne 0x4014ad
mov eax, str.retrofe.exe
mov edx, 0xb
sub esi, eax
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x4014ad
add eax, 2
sub edx, 1
jne 0x401497
mov byte [esp + 0x17], 1
mov esi, dword [esp + 0x264]
cmp esi, 8
jb 0x4014e8
lea ecx, [esi*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4014de
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40157e
push ecx
push edi
call fcn.00402cbd
add esp, 8
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
push eax
push esi
call edi
cmp eax, 1
je 0x401420
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esp + 0x17], 0
jne 0x4013f5
mov esi, dword [esp + 0x18]
push 0x7f02
push esi
call dword [sym.imp.USER32.dll_SetSystemCursor]
push esi
mov esi, dword [sym.imp.USER32.dll_DestroyCursor]
call esi
push dword [0x40658c]
call esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
je 0x401695
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x401590
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40168e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop dword [eax]
nop dword [eax + eax]
xor eax, eax
mov dword [esp + 0x260], 0
lea ecx, [esp + 0x44]
mov dword [esp + 0x264], 7
mov word [esp + 0x250], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4015b7
sub ecx, edx
lea eax, [esp + 0x44]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x258]
call fcn.00402760
cmp dword [esp + 0x264], 8
lea esi, [esp + 0x250]
mov edi, dword [esp + 0x250]
cmovae esi, edi
cmp dword [esp + 0x260], 0xc
jne 0x40163b
mov ecx, str.JoyToKey.exe
mov edx, 0xc
sub esi, ecx
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x40163b
add ecx, 2
sub edx, 1
jne 0x401607
push dword [esp + 0x28]
push edx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401634
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x264]
cmp esi, 8
jb 0x401676
lea ecx, [esi*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40166c
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40157e
push ecx
push edi
call fcn.00402cbd
add esp, 8
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401590
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push str.Overflow_Notification_Area
push str.ToolbarWindow32
push 0
push 0x4042f4
push str.NotifyIconOverflowWindow
push 0
push 0
call esi
push eax
call esi
lea ecx, [esp + 0x250]
mov dword [esp + 0x18], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x258]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
test edx, edx
jle 0x40172c
mov eax, dword [esp + 0x25c]
xor edi, edi
test eax, eax
jle 0x401721
mov esi, ecx
nop dword [eax]
push esi
push 0
push 0x200
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x25c]
add edi, 5
add esi, 0x50000
cmp edi, eax
jl 0x4016f0
mov edx, dword [esp + 0x258]
mov ecx, dword [esp + 0x1c]
add ecx, 5
mov dword [esp + 0x1c], ecx
cmp ecx, edx
jl 0x4016e5
mov ecx, dword [esp + 0x2bc]
pop edi
pop esi
xor ecx, esp
call fcn.00402c7c
mov esp, ebp
pop ebp
ret 0x10