Function at 0x408268
Capabilities:
Create process on windows

Disassembly:
push 0x98
mov eax, 0x549d90
call fcn.0052fc27
call fcn.00418b84
push eax
lea ecx, [ebp - 0x1c]
call fcn.004021f8
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00418b84
push eax
lea ecx, [ebp - 0x28]
call fcn.004021f8
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push ecx
mov ecx, esp
push str.ProgramID
call fcn.00402305
mov ecx, dword [ebp + 8]
call fcn.00414724
test eax, eax
jne 0x4082c7
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xb
jmp 0x4086ca
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, esp
push str.LaunchParam
call fcn.00402305
mov ecx, dword [ebp + 8]
call fcn.00414724
lea eax, [ebp - 0x4c]
push eax
call fcn.0052fba4
push dword [0x5b5a54]
call fcn.004061b7
cmp dword [0x5b5a34], 0
pop ecx
pop ecx
jne 0x408328
mov esi, eax
mov ebx, 0x2a30
add esi, ebx
mov ecx, edx
adc ecx, edi
cmp ecx, dword [ebp - 0x48]
jl 0x408328
jg 0x408318
cmp esi, dword [ebp - 0x4c]
jb 0x408328
sub eax, ebx
sbb edx, edi
cmp edx, dword [ebp - 0x48]
jl 0x40833a
jg 0x408328
cmp eax, dword [ebp - 0x4c]
jbe 0x40833a
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040acd1
pop ecx
test eax, eax
je 0x4086ca
call fcn.00418b84
push eax
lea ecx, [ebp - 0x14]
call fcn.004021f8
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x55ae2c
mov byte [ebp - 4], 2
call fcn.00402305
mov eax, dword [0x5b5a54]
push ecx
add eax, 0xfffffff0
mov byte [ebp - 4], 3
mov esi, esp
push eax
call fcn.00404ebf
add eax, 0x10
mov dword [esp], str.GRLAUNCHER_VERSION
mov dword [esi], eax
lea eax, [ebp - 0x2c]
push str.GENERAL
push eax
mov byte [ebp - 4], 2
call fcn.00410d7e
add esp, 0x18
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00402900
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00409ada
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x4083c7
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x32
jmp 0x4086c2
push str.1000
lea ecx, [ebp - 0x14]
call fcn.00404f1e
test eax, eax
je 0x4083e6
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xc
jmp 0x4086c2
call fcn.00418b84
push eax
lea ecx, [ebp - 0x2c]
call fcn.004021f8
mov byte [ebp - 4], 5
call fcn.00418b84
push eax
lea ecx, [ebp - 0x40]
call fcn.004021f8
mov byte [ebp - 4], 6
call fcn.00418b84
push eax
lea ecx, [ebp - 0x38]
call fcn.004021f8
mov byte [ebp - 4], 7
call fcn.00418b84
push eax
lea ecx, [ebp - 0x34]
call fcn.004021f8
mov byte [ebp - 4], 8
call fcn.00418b84
push eax
lea ecx, [ebp - 0x24]
call fcn.004021f8
mov byte [ebp - 4], 9
call fcn.00418b84
push eax
lea ecx, [ebp - 0x30]
call fcn.004021f8
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xa
push eax
mov eax, dword [ebp - 0x1c]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00404ebf
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.00407128
add esp, 0xc
test eax, eax
je 0x40867a
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00404ebf
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.004046b7
add esp, 0x30
test eax, eax
je 0x40867a
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x44]
jl 0x408671
cmp dword [0x5b5a3c], 0
je 0x4084ef
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jl 0x408671
cmp dword [ebp + 0x10], 0
je 0x408500
xor eax, eax
inc eax
mov dword [ebp - 0x14], eax
jmp 0x40867d
lea eax, [ebp - 0x10]
mov dword [ebp - 0x3c], edi
push eax
call fcn.00411599
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
push ecx
push dword [eax]
call fcn.0040f17e
mov ecx, dword [ebp - 0x10]
add esp, 0xc
neg eax
mov byte [ebp - 4], 0xa
sbb al, al
add ecx, 0xfffffff0
inc al
mov dword [ebp - 0x18], eax
call fcn.00409ada
cmp byte [ebp - 0x18], 0
je 0x408552
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp dword [ebp - 0x3c], 3
sete al
add eax, 0x21
mov dword [ecx], eax
jmp 0x40867a
push 0x40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0052ea60
add esp, 0xc
mov dword [ebp - 0xa4], 0x44
call fcn.00418b84
push eax
lea ecx, [ebp - 0x20]
call fcn.004021f8
push dword [ebp - 0x28]
mov byte [ebp - 4], 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x55adbc
call fcn.00402305
mov esi, dword [ebp - 0x30]
push ecx
mov dword [ebp - 0x44], esp
mov edi, esp
mov byte [ebp - 4], 0xd
lea eax, [esi - 0x10]
push eax
call fcn.00404ebf
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x24]
mov edi, esp
add eax, 0xfffffff0
mov byte [ebp - 4], 0xe
push eax
call fcn.00404ebf
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x10]
pop ecx
push eax
mov byte [ebp - 4], 0xc
call fcn.00410061
add esp, 0x10
push dword [eax]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xf
push str.__s___s
push eax
call fcn.00405f14
mov ecx, dword [ebp - 0x10]
add esp, 0x10
mov byte [ebp - 4], 0xc
lea ecx, [ecx - 0x10]
call fcn.00409ada
push dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
push edi
push str.gomtv_run_param:__s__s
call fcn.00410441
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x24]
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x5c], 0
mov dword [ebp - 0x10], eax
je 0x40863f
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x58], 0
je 0x40864e
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
jne 0x408661
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xe
xor eax, eax
jmp 0x408664
xor eax, eax
inc eax
lea ecx, [edi - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00409ada
jmp 0x408680
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x17
mov dword [ebp - 0x14], edi
mov esi, dword [ebp - 0x30]
lea ecx, [esi - 0x10]
call fcn.00409ada
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00409ada
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00409ada
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00409ada
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00409ada
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00409ada
mov edi, dword [ebp - 0x14]
lea ecx, [ebx - 0x10]
call fcn.00409ada
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00409ada
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00409ada
mov eax, edi
call fcn.0052fbf5
ret