Function at 0x401c40
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a645
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x42107c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0xe
xor ebx, ebx
mov edi, 0xf
push str.shLauncher.cfg
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
call fcn.00403fd0
lea ecx, [ebp - 0x4c]
lea esi, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.004064f0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x38], 0x10
jb 0x401cb4
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00406dae
add esp, 4
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x20], ebx
jne 0x401d79
push 0x40
push 0x41dfcc
push str.shLauncher_v1.0_by_mploded.com_r_n_r_nPlease_take_me_to_your_game_executable__usually_game.exe_...
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esi, [ebp - 0xa0]
call fcn.00406420
mov esi, eax
lea ecx, [ebp - 0x30]
cmp ecx, esi
je 0x401d3d
cmp dword [ebp - 0x1c], 0x10
jb 0x401cff
mov edx, dword [ebp - 0x30]
push edx
call fcn.00406dae
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [esi + 0x14], 0x10
jae 0x401d22
mov eax, dword [esi + 0x10]
inc eax
push eax
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.00406920
add esp, 0xc
jmp 0x401d29
mov ecx, dword [esi]
mov dword [ebp - 0x30], ecx
mov dword [esi], ebx
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov byte [ebp - 4], 2
cmp dword [ebp - 0x8c], 0x10
jb 0x401d59
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.00406dae
add esp, 4
cmp dword [ebp - 0x20], ebx
jne 0x401d79
cmp dword [ebp - 0x1c], 0x10
jb 0x402243
mov edx, dword [ebp - 0x30]
push edx
call fcn.00406dae
add esp, 4
jmp 0x402243
lea eax, [ebp - 0xa4]
push eax
lea edi, [ebp - 0x30]
mov byte [ebp - 0xa4], 0x5c
call fcn.00403380
push eax
push ebx
mov ecx, edi
push ecx
mov esi, 0xf
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
call fcn.00403290
mov byte [ebp - 4], 4
push 0xb
push str._start_game
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
call fcn.00403fd0
push 0x40
lea edx, [ebp - 0x124]
push ebx
mov byte [ebp - 4], 5
push edx
mov dword [ebp - 0x128], 0x44
call fcn.0040b050
mov edx, dword [ebp - 0x68]
mov esi, 0x10
add esp, 0xc
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
cmp dword [ebp - 0x54], esi
jae 0x401e14
lea edx, [ebp - 0x68]
mov ecx, dword [ebp - 0x84]
cmp dword [ebp - 0x70], esi
jae 0x401e25
lea ecx, [ebp - 0x84]
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x401e30
lea eax, [ebp - 0x30]
lea edi, [ebp - 0xc0]
push edi
lea edi, [ebp - 0x128]
push edi
push edx
push ebx
push 4
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401ea6
push esi
push ebx
push str.Failed_to_create_new_process
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp - 0x70], esi
jb 0x401e73
mov eax, dword [ebp - 0x84]
push eax
call fcn.00406dae
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
cmp dword [ebp - 0x54], esi
jb 0x401e95
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00406dae
add esp, 4
cmp dword [ebp - 0x1c], esi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
jmp 0x401d62
push 0xe
push str.shLauncher.cfg
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
call fcn.00403fd0
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x38], esi
jae 0x401ecd
lea eax, [ebp - 0x4c]
push 0x41e278
push eax
call fcn.004070cb
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x401efc
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x401eec
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.004070e2
push edi
call fcn.0040725b
add esp, 0xc
cmp dword [ebp - 0x38], esi
jb 0x401f0d
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00406dae
add esp, 4
mov edi, dword [ebp - 0xc0]
call fcn.00406390
test al, al
jne 0x401f91
push esi
push ebx
push str.Failed_to_create_remote_thread
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0xc0]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp - 0x70], esi
jb 0x401f4c
mov edx, dword [ebp - 0x84]
push edx
call fcn.00406dae
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
cmp dword [ebp - 0x54], esi
jb 0x401f6e
mov eax, dword [ebp - 0x68]
push eax
call fcn.00406dae
add esp, 4
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
cmp dword [ebp - 0x1c], esi
jb 0x402243
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00406dae
add esp, 4
jmp 0x402243
push 8
mov byte [ebp - 4], 6
call fcn.00406e57
add esp, 4
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x401fc3
mov edx, dword [ebp - 0xb8]
push edx
mov esi, eax
call fcn.00401a50
mov dword [ebp - 0xa8], eax
jmp 0x401fc9
mov dword [ebp - 0xa8], ebx
push str.CreateMutexA
push str.kernel32.dll
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x401c20
mov dword [ebp - 0xb0], esi
call section..text
mov ecx, dword [ebp - 0xa8]
add esp, 4
mov ebx, eax
push esi
lea eax, [ebp - 0xd0]
push eax
push ecx
mov dword [ebp - 0xac], ebx
call fcn.00405940
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xd0]
push edx
call fcn.00401070
xor ecx, ecx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], ecx
add esp, 4
lea ecx, [ebp - 0xa4]
push ecx
lea edi, [ebp - 0x94]
mov byte [ebp - 0xa4], 0x90
call fcn.00406300
mov ebx, dword [ebp - 0xa8]
mov edi, dword [ebp - 0xb0]
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x94]
mov esi, dword [ebp - 0x90]
sub esi, eax
push eax
mov eax, ebx
call fcn.004059f0
mov esi, dword [ebp - 0xac]
mov eax, ebx
call fcn.00405ac0
push str.FindWindowA
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x401c30
mov dword [ebp - 0xac], esi
call section..text
add esp, 4
push esi
lea edx, [ebp - 0xe0]
push edx
mov edi, eax
push ebx
mov dword [ebp - 0xb0], edi
call fcn.00405940
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0xe0]
push eax
mov ebx, edi
call fcn.00401070
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
add esp, 4
lea ecx, [ebp - 0xa4]
push ecx
lea edi, [ebp - 0x40]
mov byte [ebp - 0xa4], 0x90
call fcn.00406300
mov eax, dword [ebp - 0xa8]
mov byte [ebp - 4], 0xc
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0xac]
sub esi, ebx
push ebx
call fcn.004059f0
mov esi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xa8]
call fcn.00405b90
mov edx, dword [ebp - 0xbc]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor esi, esi
cmp ebx, esi
je 0x40214e
push ebx
call fcn.00406dae
add esp, 4
mov eax, dword [ebp - 0xe0]
cmp eax, esi
je 0x402161
push eax
call fcn.00406dae
add esp, 4
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xd8], esi
cmp eax, esi
je 0x402186
push eax
call fcn.00406dae
add esp, 4
mov eax, dword [ebp - 0xd0]
cmp eax, esi
je 0x402199
push eax
call fcn.00406dae
add esp, 4
mov edi, 0x10
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xc8], esi
cmp dword [ebp - 0x70], edi
jb 0x4021c4
mov eax, dword [ebp - 0x84]
push eax
call fcn.00406dae
add esp, 4
mov ebx, 0xf
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], esi
mov byte [ebp - 0x84], 0
cmp dword [ebp - 0x54], edi
jb 0x4021e7
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00406dae
add esp, 4
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], esi
mov byte [ebp - 0x68], 0
jmp 0x401d62
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 - 0x14]
xor ecx, ebp
call fcn.00406722
mov esp, ebp
pop ebp
ret 0x10