Function at 0x413190
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
cmp dword [ebp + 8], edi
je 0x413305
push str.GamePP3
push str.GamePP.exe
push 0x4d6d30
lea edi, [esp + 0x20]
call fcn.004130d0
push str.TFTUtils
push str.TFTUtils.exe
push 0x4d6d50
call fcn.004130d0
push 0x4d5dd0
push 0x4d5e1c
push 0x4d5dd0
call fcn.004130d0
push str.ClickUtils
push str.ClickUtils.exe
push 0x4d6d74
call fcn.004130d0
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x18]
je 0x4132f3
mov eax, dword [edi]
add eax, 8
mov ecx, 0x4d5e1c
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x41324b
test dx, dx
je 0x413247
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x41324b
add ecx, 4
add eax, 4
test dx, dx
jne 0x413225
xor eax, eax
jmp 0x413250
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4132e6
cmp dword [0x50012c], 0
jne 0x41328a
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x413280
mov esi, eax
call fcn.004112e0
mov dword [0x50012c], eax
jmp 0x41328a
mov dword [0x50012c], 0
mov ebx, dword [edi]
add ebx, 8
je 0x4132e6
call fcn.00411740
test eax, eax
je 0x4132e6
mov eax, dword [edi]
mov dword [eax], 1
mov eax, dword [edi]
add eax, 0x210
push eax
push 0
mov dword [esp + 0x2c], 1
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4132d5
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
shr eax, 0x1c
test al, 1
je 0x4132d5
mov eax, 1
jmp 0x4132d7
xor eax, eax
mov ecx, dword [edi]
mov dword [ecx + 4], eax
mov ecx, dword [edi]
add ecx, 8
call fcn.00413d20
add edi, 4
cmp edi, dword [esp + 0x18]
jne 0x41321b
push str.GPPPlatform.exe
call fcn.00413ff0
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
cmp dword [ebp + 0xc], 0
je 0x413315
call fcn.004134f0
jmp 0x41346c
mov edx, dword [0x4fc44c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4fc44c
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [0x50012c]
test eax, eax
jne 0x413356
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x41334f
mov esi, eax
call fcn.004112e0
jmp 0x413351
xor eax, eax
mov dword [0x50012c], eax
mov ecx, dword [eax + 0x24cc]
add eax, 0xc30
cmp dword [ecx - 0xc], 0
lea edi, [esp + 0x10]
jne 0x41337b
push eax
push str._s__main
call fcn.00403db0
add esp, 8
jmp 0x41338a
push ecx
push eax
push str._s__main__gameid_s
call fcn.00403db0
add esp, 0xc
cmp dword [0x50012c], 0
jne 0x4133bc
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x4133b2
mov esi, eax
call fcn.004112e0
mov dword [0x50012c], eax
jmp 0x4133bc
mov dword [0x50012c], 0
mov edi, dword [esp + 0x10]
push edi
call fcn.0040cdd0
test eax, eax
jne 0x41344c
cmp dword [0x50012c], eax
jne 0x4133ff
push 0x24d4
call fcn.0042ec5c
add esp, 4
test eax, eax
je 0x4133f5
mov esi, eax
call fcn.004112e0
mov dword [0x50012c], eax
jmp 0x4133ff
mov dword [0x50012c], 0
push 0x40
lea eax, [esp + 0x30]
push 0
push eax
mov dword [esp + 0x34], 0x44
call fcn.00438200
add esp, 0xc
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
push edi
mov ecx, 1
push 0
mov dword [esp + 0x7c], 1
mov word [esp + 0x80], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413468
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x24], 0
je 0x4134a4
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, edi
cmp edi, ebx
je 0x4134a4
mov eax, dword [esi]
cmp dword [eax], 0
je 0x41349d
mov ecx, dword [eax + 4]
push ecx
lea edx, [eax + 8]
lea ecx, [eax + 0x418]
call fcn.00413ea0
add esi, 4
cmp esi, ebx
jne 0x413484
mov esi, edi
cmp edi, ebx
je 0x4134ce
lea ebx, [ebx]
mov edx, dword [esi]
push edx
call fcn.0042ec00
add esi, 4
add esp, 4
cmp esi, ebx
jne 0x4134b0
push 0
push ebx
push edi
call fcn.0042e5a0
add esp, 0xc
test edi, edi
je 0x4134db
push edi
call fcn.0042ec00
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8