Function at 0x402cb0
Capabilities:
Create process on windows
Query environment variable
Read .ini file
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x39dc
call fcn.004037b0
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
push str._WmglLauncher__Start.
call fcn.00402390
add esp, 4
push 0x400
push 0
lea eax, [ebp - 0x1154]
push eax
call fcn.00404130
add esp, 0xc
lea ecx, [ebp - 0x3960]
push ecx
mov ecx, 0x41d970
call fcn.00402ac0
jmp 0x402d11
push 0
lea edx, [ebp - 0x3990]
push edx
lea ecx, [ebp - 0x3960]
call fcn.00402360
lea eax, [ebp - 0x3994]
push eax
mov ecx, 0x41d970
call fcn.00402af0
push eax
lea ecx, [ebp - 0x3960]
call fcn.004022a0
movzx ecx, al
test ecx, ecx
je 0x402dcc
lea edx, [ebp - 0x3998]
push edx
mov ecx, 0x41d970
call fcn.00402ac0
push eax
lea ecx, [ebp - 0x3960]
call fcn.004022a0
movzx eax, al
test eax, eax
je 0x402d71
push 0x4152a4
lea ecx, [ebp - 0x1154]
push ecx
call fcn.00406eea
add esp, 8
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
lea ecx, [ebp - 0x3960]
call fcn.004022e0
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x3978], eax
push 0xa
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x3978]
push edx
call fcn.004071ce
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1154]
push ecx
call fcn.00406eea
add esp, 8
jmp 0x402cfd
lea edx, [ebp - 0x1154]
push edx
push 0x4152a8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x208
push 0
lea eax, [ebp - 0x944]
push eax
call fcn.00404130
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x73c]
push ecx
call fcn.00404130
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x32c]
push edx
call fcn.00404130
add esp, 0xc
push 0x208
push 0
lea eax, [ebp - 0x534]
push eax
call fcn.00404130
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x944]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x944]
push edx
push str._WmglLauncher__Exe_file_path___s
call fcn.00402390
add esp, 8
lea eax, [ebp - 0x944]
push eax
lea ecx, [ebp - 0x73c]
push ecx
call fcn.004021e0
add esp, 8
push 0x5c
lea edx, [ebp - 0x73c]
push edx
call fcn.00402b60
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x73c]
push edx
push str._WmglLauncher__szRunDir___s
call fcn.00402390
add esp, 8
mov dword [ebp - 0x3964], 0xffffffff
push 0x208
push 0
lea eax, [ebp - 0xd54]
push eax
call fcn.00404130
add esp, 0xc
push 0x104
lea ecx, [ebp - 0xd54]
push ecx
lea edx, [ebp - 0x73c]
push edx
call fcn.00402420
add esp, 0xc
movzx eax, al
test eax, eax
je 0x402fda
lea ecx, [ebp - 0xd54]
push ecx
push 0x415348
lea edx, [ebp - 0x32c]
push edx
call fcn.00402160
add esp, 0xc
push 0x80
push 0
lea eax, [ebp - 0xa4]
push eax
call fcn.00404130
add esp, 0xc
lea ecx, [ebp - 0x32c]
push ecx
push 0x40
lea edx, [ebp - 0xa4]
push edx
push 0x415374
push 0x415378
push 0x415388
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x32c]
push eax
push 0xffffffffffffffff
push 0x415398
push 0x4153a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x3964], eax
lea ecx, [ebp - 0x32c]
push ecx
lea edx, [ebp - 0xa4]
push edx
push str._WmglLauncher__Find_Patcher___s__in_dir__s_
call fcn.00402390
add esp, 0xc
lea eax, [ebp - 0x32c]
push eax
push 0
push str.Partner
push 0x415424
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jbe 0x402fb6
lea ecx, [ebp - 0x32c]
push ecx
push 0x40
lea edx, [ebp - 0xa4]
push edx
push 0x415434
push str.Client
push 0x415448
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xd54]
push ecx
push 0x415458
lea edx, [ebp - 0x534]
push edx
call fcn.00402160
add esp, 0x10
jmp 0x402fef
push 0x415468
call fcn.00402390
add esp, 4
or eax, 0xffffffff
jmp 0x4033dd
lea eax, [ebp - 0x534]
push eax
push str._WmglLauncher__szRepairFilePath_s
call fcn.00402390
add esp, 8
mov ecx, dword [str._launcher]
mov dword [ebp - 0x3954], ecx
mov edx, dword [0x41552c]
mov dword [ebp - 0x3950], edx
mov eax, dword [0x415530]
mov dword [ebp - 0x394c], eax
mov ecx, dword [0x415534]
mov dword [ebp - 0x3948], ecx
mov edx, dword [0x415538]
mov dword [ebp - 0x3944], edx
mov ax, word [0x41553c]
mov word [ebp - 0x3940], ax
push 0x1fea
push 0
lea ecx, [ebp - 0x393e]
push ecx
call fcn.00404130
add esp, 0xc
mov dword [ebp - 0x3958], 0
jmp 0x40307c
mov edx, dword [ebp - 0x3958]
add edx, 1
mov dword [ebp - 0x3958], edx
call fcn.0040721c
mov ecx, dword [ebp - 0x3958]
cmp ecx, dword [eax]
jge 0x403160
cmp dword [ebp - 0x3958], 0
jne 0x4030be
lea edx, [ebp - 0x944]
push edx
call fcn.00407222
mov eax, dword [eax]
mov ecx, dword [ebp - 0x3958]
mov edx, dword [eax + ecx*4]
push edx
call fcn.0040701a
add esp, 8
test eax, eax
jne 0x4030be
jmp 0x40306d
push 0x20
call fcn.00407222
mov eax, dword [eax]
mov ecx, dword [ebp - 0x3958]
mov edx, dword [eax + ecx*4]
push edx
call fcn.00402b40
add esp, 8
test eax, eax
je 0x403127
push 0x415464
lea eax, [ebp - 0x3954]
push eax
call fcn.004021c0
add esp, 8
call fcn.00407222
mov ecx, dword [eax]
mov edx, dword [ebp - 0x3958]
mov eax, dword [ecx + edx*4]
push eax
lea ecx, [ebp - 0x3954]
push ecx
call fcn.004021c0
add esp, 8
push 0x415540
lea edx, [ebp - 0x3954]
push edx
call fcn.004021c0
add esp, 8
jmp 0x403147
call fcn.00407222
mov eax, dword [eax]
mov ecx, dword [ebp - 0x3958]
mov edx, dword [eax + ecx*4]
push edx
lea eax, [ebp - 0x3954]
push eax
call fcn.004021c0
add esp, 8
push 0x415544
lea ecx, [ebp - 0x3954]
push ecx
call fcn.004021c0
add esp, 8
jmp 0x40306d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.004025c0
add esp, 4
mov dword [ebp - 0x396c], eax
cmp dword [ebp - 0x396c], 0xffffffff
je 0x40323d
mov edx, dword [ebp - 0x396c]
mov dword [ebp - 0x3968], edx
mov eax, dword [ebp - 0x3968]
xor eax, dword [ebp - 0x3964]
mov dword [ebp - 0x3968], eax
push 0x208
push 0
lea ecx, [ebp - 0xb4c]
push ecx
call fcn.00404130
add esp, 0xc
push 0x80
push 0
lea edx, [ebp - 0x124]
push edx
call fcn.00404130
add esp, 0xc
push 0xa
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x3964]
push ecx
call fcn.004071ce
add esp, 0xc
push 0x104
lea edx, [ebp - 0xb4c]
push edx
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0xb4c]
test eax, eax
jne 0x40323d
push 0xa
lea ecx, [ebp - 0xb4c]
push ecx
mov edx, dword [ebp - 0x3968]
push edx
call fcn.004071ce
add esp, 0xc
lea eax, [ebp - 0xb4c]
push eax
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x415548
push 0x41554c
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea edx, [ebp - 0x32c]
push edx
push 0
push str.Admin
push 0x415578
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x403276
mov dword [ebp - 0x3970], 1
jmp 0x403280
mov dword [ebp - 0x3970], 0
mov al, byte [ebp - 0x3970]
mov byte [ebp - 0x3959], al
mov dword [ebp - 0x397c], 0
cmp dword [ebp - 0x397c], 0x20
ja 0x4033db
push 1
push 0
lea edx, [ebp - 0x3954]
push edx
lea eax, [ebp - 0x534]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x3974], eax
mov ecx, dword [ebp - 0x3974]
push ecx
lea edx, [ebp - 0x3954]
push edx
lea eax, [ebp - 0x534]
push eax
push str._WmglLauncher__ShellExecute__s__szCmdLine_s__return__d
call fcn.00402390
add esp, 0x10
cmp dword [ebp - 0x3974], 0x20
ja 0x4033ce
push 0x44
push 0
lea ecx, [ebp - 0x39dc]
push ecx
call fcn.00404130
add esp, 0xc
mov dword [ebp - 0x39dc], 0x44
xor edx, edx
mov dword [ebp - 0x398c], edx
mov dword [ebp - 0x3988], edx
mov dword [ebp - 0x3984], edx
mov dword [ebp - 0x3980], edx
push 0x800
push 0
lea eax, [ebp - 0x1954]
push eax
call fcn.00404130
add esp, 0xc
lea ecx, [ebp - 0x3954]
push ecx
lea edx, [ebp - 0x534]
push edx
push str.__s___s
lea eax, [ebp - 0x1954]
push eax
call fcn.00402190
add esp, 0x10
lea ecx, [ebp - 0x398c]
push ecx
lea edx, [ebp - 0x39dc]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1954]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4033b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x1954]
push ecx
push str.CreateProcess_szCmd___s__failed__errno_d
call fcn.00402390
add esp, 0xc
xor eax, eax
jmp 0x4033dd
mov edx, dword [ebp - 0x398c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x3988]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._WmglLauncher__Normal_quit_
call fcn.00402390
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040352b
mov esp, ebp
pop ebp
ret 0x10