Function at 0x401246
Capabilities:
Create process on windows
Enumerate process modules
Enumerate processes
Get common file path

Disassembly:
push ebp
sub esp, 0xd4c
lea ebp, [esp - 4]
mov eax, dword [0x419004]
xor eax, ebp
mov dword [ebp + 0xd4c], eax
push 0x6c
mov eax, 0x411b46
call fcn.00410e3b
lea eax, [ebp + 0xa44]
mov edi, 0x104
push eax
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
lea ecx, [ebp + 0x22c]
mov dword [ebp - 0x18], eax
mov dword [ebp + 0x23c], ebx
mov dword [ebp + 0x240], 7
call fcn.00401798
mov esi, 0x417610
lea ecx, [ebp + 0x22c]
push esi
call fcn.0040171a
test al, al
je 0x4012d7
cmp dword [ebp + 0x240], 8
mov eax, ecx
cmovae eax, dword [ebp + 0x22c]
inc ebx
sub esi, eax
mov eax, ecx
push ebx
sar esi, 1
push esi
push eax
call fcn.0040191d
jmp 0x401314
push ecx
xor ebx, ebx
lea ecx, [ebp + 0x22c]
inc ebx
push ebx
call fcn.00401753
test al, al
je 0x401314
cmp dword [ebp + 0x240], 8
lea ecx, [ebp + 0x22c]
push ebx
cmovae ecx, dword [ebp + 0x22c]
mov edx, esi
call fcn.004010cc
pop ecx
push ebx
lea ecx, [ebp + 0x22c]
call fcn.00401798
xor ecx, ecx
mov byte [ebp - 4], bl
cmp word [str.F8Crack.dll], cx
push 0x10
pop eax
cmove eax, ecx
push eax
push ecx
lea ecx, [ebp + 0x22c]
call fcn.0040168e
cmp dword [eax + 0x14], 8
jb 0x40133b
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp + 0xa44]
sub edi, eax
push edi
lea eax, [ecx + eax*2]
push eax
call fcn.004049f7
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x22c]
push 0
push ebx
call fcn.00401616
push 0x44
pop esi
push esi
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00403d40
xor eax, eax
mov dword [ebp - 0x78], esi
lea edi, [ebp - 0x30]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x78]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push str.mbotLoader.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4015a3
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov dword [ebp - 0x20], esi
cmp esi, 0xf
jae 0x4015cb
push 0
push 2
mov dword [ebp], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp]
push eax
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401579
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x401576
mov ecx, str.mBot_vSRO110.exe
lea eax, [ebp + 0x24]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401448
test dx, dx
je 0x401444
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401448
add eax, 4
add ecx, 4
test dx, dx
jne 0x401422
xor eax, eax
jmp 0x40144c
sbb eax, eax
or eax, ebx
test eax, eax
jne 0x401407
push dword [ebp + 8]
push eax
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40146f
mov ecx, 0x417658
call fcn.0040110f
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0x800
lea eax, [ebp + 0x244]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x4014a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12b
je 0x401407
mov ecx, 0x417664
jmp 0x40146a
xor edi, edi
mov byte [ebp - 0x11], 0
test dword [ebp - 0x1c], 0xfffffffc
jbe 0x401594
push 0x100
lea eax, [ebp + 0xc4c]
push eax
push dword [ebp + edi*4 + 0x244]
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
test eax, eax
je 0x401550
mov ecx, str.mBotCrack.dll
lea eax, [ebp + 0xc4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401508
test dx, dx
je 0x401504
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401508
add eax, 4
add ecx, 4
test dx, dx
jne 0x4014e2
xor eax, eax
jmp 0x40150c
sbb eax, eax
or eax, ebx
test eax, eax
jne 0x401517
mov cl, bl
mov byte [ebp - 0x11], cl
jmp 0x401553
mov ecx, str.F8Crack.dll
lea eax, [ebp + 0xc4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401548
test dx, dx
je 0x401544
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401548
add eax, 4
add ecx, 4
test dx, dx
jne 0x401522
xor eax, eax
jmp 0x40154c
sbb eax, eax
or eax, ebx
test eax, eax
je 0x401594
mov cl, byte [ebp - 0x11]
mov eax, dword [ebp - 0x1c]
inc edi
shr eax, 2
cmp edi, eax
jb 0x4014b9
test cl, cl
je 0x401594
lea edx, [ebp + 0xa44]
mov ecx, esi
call fcn.0040115f
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
push 0xfa
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4013d5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x18]
jmp 0x401407
mov ecx, 0x417624
jmp 0x40146a
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 + 0xd4c]
xor ecx, ebp
call fcn.00401b6e
lea esp, [ebp + 0xd50]
pop ebp
ret 0x10