Function at 0x4175e6
Capabilities:
Contain obfuscated stackstrings
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56132a
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x4dc
mov eax, dword [0x5d6c64]
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
call fcn.00423aec
mov ecx, eax
call fcn.00423b64
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.00423aec
mov ecx, eax
call fcn.00423b64
mov dword [eax + 0x60], esi
and dword [ebp - 0x1f0], 0
lea ecx, [ebp - 0x1ec]
call fcn.00418192
and dword [ebp - 4], 0
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
and dword [ebp - 0x348], 0
jmp 0x417675
mov eax, dword [ebp - 0x348]
inc eax
mov dword [ebp - 0x348], eax
mov eax, dword [ebp - 0x348]
cmp eax, dword [ebp + 8]
jge 0x417819
mov eax, dword [ebp - 0x348]
mov ecx, dword [ebp + 0xc]
push dword [ecx + eax*4]
lea ecx, [ebp - 0x364]
call fcn.00404b40
mov byte [ebp - 4], 3
push str.ENV_WEGAME_LAUNCHER_GAME_ID
call sub.MSVCR100.dll_strlen
pop ecx
mov dword [ebp - 0x39c], eax
push dword [ebp - 0x39c]
push 0
push str.ENV_WEGAME_LAUNCHER_GAME_ID
lea ecx, [ebp - 0x364]
call fcn.00418957
mov dword [ebp - 0x3a0], eax
mov eax, dword [ebp - 0x3a0]
cmp eax, dword [0x5c0400]
je 0x4177fd
lea eax, [ebp - 0x3a9]
mov dword [ebp - 0x3a8], eax
lea eax, [ebp - 0x380]
mov dword [ebp - 0x4d8], eax
mov byte [ebp - 4], 4
push 0
push 0
lea ecx, [ebp - 0x380]
call fcn.00406660
mov byte [ebp - 4], 5
push 0x56f4c0
call sub.MSVCR100.dll_strlen
pop ecx
mov dword [ebp - 0x3b0], eax
push dword [ebp - 0x3b0]
push 0
push 0x56f4c0
lea ecx, [ebp - 0x364]
call fcn.00418957
mov dword [ebp - 0x3b4], eax
push dword [0x5c0400]
mov eax, dword [ebp - 0x3b4]
inc eax
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x364]
call fcn.00418310
mov dword [ebp - 0x4dc], eax
mov eax, dword [ebp - 0x4dc]
mov dword [ebp - 0x4e0], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x380]
push eax
push dword [ebp - 0x4e0]
call fcn.0041b98a
pop ecx
pop ecx
mov byte [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00406430
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x380]
call fcn.004071e0
mov dword [ebp - 0x3b8], eax
push dword [ebp - 0x3b8]
push dword [0x5d3348]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 3
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x4177e6
lea ecx, [ebp - 0x380]
call fcn.004071e0
push eax
push str._main__set_environment_successful:__ws
push 3
call fcn.0041b5a4
add esp, 0xc
mov byte [ebp - 4], 8
push 0
push 1
lea ecx, [ebp - 0x380]
call fcn.00406660
mov byte [ebp - 4], 3
mov byte [ebp - 4], 9
push 0
push 1
lea ecx, [ebp - 0x364]
call fcn.00406430
mov byte [ebp - 4], 2
jmp 0x417668
call fcn.0041696b
call fcn.004249e0
mov ecx, eax
call fcn.00424b34
mov dword [ebp - 0x30c], eax
call fcn.004249e0
mov ecx, eax
call fcn.00424c83
mov dword [ebp - 0x260], eax
call fcn.004174e7
movzx eax, al
test eax, eax
jne 0x4178d3
push 0x56f4ec
lea ecx, [ebp - 0x4c]
call fcn.00404b40
mov byte [ebp - 4], 0xa
push 0
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x30c]
call fcn.00425406
mov dword [0x5ea18c], eax
mov byte [ebp - 4], 0xb
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00406430
mov byte [ebp - 4], 2
cmp dword [0x5ea18c], 0
jne 0x4178d1
push 0x56f4f4
lea ecx, [ebp - 0x68]
call fcn.00404b40
mov byte [ebp - 4], 0xc
push 0
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x260]
call fcn.00425406
mov dword [0x5ea18c], eax
mov byte [ebp - 4], 0xd
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.00406430
mov byte [ebp - 4], 2
jmp 0x4178f7
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x4178f7
push dword [0x5ea18c]
push str._main__use_environment_game_id__d
push 4
call fcn.0041b5a4
add esp, 0xc
call fcn.00423aec
mov ecx, eax
call fcn.00423b64
mov ecx, dword [0x5ea18c]
mov dword [eax + 4], ecx
push 0x56f520
lea ecx, [ebp - 0x84]
call fcn.00404e60
mov byte [ebp - 4], 0xe
push 0x56f52c
lea ecx, [ebp - 0xa0]
call fcn.00404b40
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x344]
push eax
mov ecx, dword [ebp - 0x30c]
call fcn.00425470
mov byte [ebp - 4], 0x12
push 0
push 1
lea ecx, [ebp - 0xa0]
call fcn.00406430
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0x14
push 0
push 1
lea ecx, [ebp - 0x84]
call fcn.00406660
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x344]
call fcn.004071e0
push eax
push 0x103
push 0x5d3140
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
call fcn.00423aec
mov ecx, eax
call fcn.00423b64
mov ecx, dword [0x5ea18c]
mov dword [eax + 4], ecx
push 0x56f538
lea ecx, [ebp - 0xbc]
call fcn.00404b40
mov byte [ebp - 4], 0x15
push 0
lea eax, [ebp - 0xbc]
push eax
mov ecx, dword [ebp - 0x30c]
call fcn.00425406
mov esi, eax
call fcn.00423aec
mov ecx, eax
call fcn.00423b64
mov dword [eax + 0xe4], esi
mov byte [ebp - 4], 0x16
push 0
push 1
lea ecx, [ebp - 0xbc]
call fcn.00406430
mov byte [ebp - 4], 0x13
call fcn.004249e0
mov ecx, eax
call fcn.00424bb0
mov dword [ebp - 0x268], eax
push str.log_lvl
lea ecx, [ebp - 0xd8]
call fcn.00404b40
mov byte [ebp - 4], 0x17
push 4
lea eax, [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0x268]
call fcn.00425406
mov dword [ebp - 0x2e4], eax
mov byte [ebp - 4], 0x18
push 0
push 1
lea ecx, [ebp - 0xd8]
call fcn.00406430
mov byte [ebp - 4], 0x13
and dword [ebp - 0x1f8], 0
and dword [ebp - 0x1f4], 0
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call fcn.0042f097
pop ecx
pop ecx
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x308]
push eax
call fcn.0042fe3d
pop ecx
mov byte [ebp - 4], 0x1a
push 0x4163b7
push dword [ebp - 0x2e4]
mov eax, dword [0x5ea18c]
cdq
push edx
push eax
push dword [ebp - 0x1f4]
push dword [ebp - 0x1f8]
lea ecx, [ebp - 0x1f0]
call fcn.0041008c
push 3
call fcn.00467320
pop ecx
push str.req_cfg_start_timeout_ms
lea ecx, [ebp - 0xf4]
call fcn.00404b40
mov byte [ebp - 4], 0x1b
push 0x1f4
lea eax, [ebp - 0xf4]
push eax
mov ecx, dword [ebp - 0x268]
call fcn.00425406
mov dword [ebp - 0x2e8], eax
mov byte [ebp - 4], 0x1c
push 0
push 1
lea ecx, [ebp - 0xf4]
call fcn.00406430
mov byte [ebp - 4], 0x1a
push str.req_cfg_end_timeout_ms
lea ecx, [ebp - 0x110]
call fcn.00404b40
mov byte [ebp - 4], 0x1d
push 0x1388
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x268]
call fcn.00425406
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 0x1e
push 0
push 1
lea ecx, [ebp - 0x110]
call fcn.00406430
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x441]
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x284]
mov dword [ebp - 0x4e4], eax
mov byte [ebp - 4], 0x1f
push 0
push 0
lea ecx, [ebp - 0x284]
call fcn.00406430
mov byte [ebp - 4], 0x20
push dword [0x5ea18c]
push 0x56f580
lea eax, [ebp - 0x284]
push eax
call fcn.0041e3a8
add esp, 0xc
lea eax, [ebp - 0x44d]
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x2cc]
mov dword [ebp - 0x4e8], eax
mov byte [ebp - 4], 0x21
push 0
push 0
lea ecx, [ebp - 0x2cc]
call fcn.00406430
mov byte [ebp - 4], 0x22
call fcn.00423aec
mov ecx, eax
call fcn.00423b64
push dword [eax + 0xe4]
push 0x56f584
lea eax, [ebp - 0x2cc]
push eax
call fcn.0041e3a8
add esp, 0xc
lea eax, [ebp - 0x44e]
push eax
lea eax, [ebp - 0x44f]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.00418a46
mov byte [ebp - 4], 0x23
mov byte [ebp - 4], 0x24
push str.game_id
lea ecx, [ebp - 0x12c]
call fcn.00404b40
mov byte [ebp - 4], 0x25
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.004183f8
mov dword [ebp - 0x464], eax
push dword [0x5c0400]
push 0
lea eax, [ebp - 0x284]
push eax
mov ecx, dword [ebp - 0x464]
call fcn.00406230
mov byte [ebp - 4], 0x26
push 0
push 1
lea ecx, [ebp - 0x12c]
call fcn.00406430
mov byte [ebp - 4], 0x24
push 0x56f590
lea ecx, [ebp - 0x148]
call fcn.00404b40
mov byte [ebp - 4], 0x27
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.004183f8
mov dword [ebp - 0x478], eax
push dword [0x5c0400]
push 0
lea eax, [ebp - 0x2cc]
push eax
mov ecx, dword [ebp - 0x478]
call fcn.00406230
mov byte [ebp - 4], 0x28
push 0
push 1
lea ecx, [ebp - 0x148]
call fcn.00406430
mov byte [ebp - 4], 0x24
push dword [0x5d3138]
lea ecx, [ebp - 0x164]
call fcn.00404b40
mov byte [ebp - 4], 0x29
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x258]
call fcn.0042e6b2
mov byte [ebp - 4], 0x2c
push 0
push 1
lea ecx, [ebp - 0x164]
call fcn.00406430
mov byte [ebp - 4], 0x2b
push 0x56f59c
lea ecx, [ebp - 0x180]
call fcn.00404e60
mov byte [ebp - 4], 0x2d
push dword [ebp - 0x2e8]
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.004173ce
add esp, 0xc
mov byte [ebp - 0x2cd], al
mov byte [ebp - 4], 0x2e
push 0
push 1
lea ecx, [ebp - 0x180]
call fcn.00406660
mov byte [ebp - 4], 0x2b
movzx esi, byte [ebp - 0x2cd]
neg esi
sbb esi, esi
neg esi
call fcn.00423aec
mov ecx, eax
call fcn.00423b64
mov dword [eax + 0x50], esi
movzx eax, byte [ebp - 0x2cd]
test eax, eax
je 0x417ddc
push 0x56f5d4
lea ecx, [ebp - 0x19c]
call fcn.00404e60
mov byte [ebp - 4], 0x2f
lea eax, [ebp - 0x19c]
push eax
call fcn.004249e0
mov ecx, eax
call fcn.00424ace
mov byte [ebp - 4], 0x30
push 0
push 1
lea ecx, [ebp - 0x19c]
call fcn.00406660
mov byte [ebp - 4], 0x2b
call fcn.004249e0
mov ecx, eax
call fcn.00424bb0
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x2e4]
mov dword [ebp - 0x294], eax
push dword [ebp - 0x294]
call fcn.00416628
pop ecx
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x2b0]
push eax
call fcn.0041678c
pop ecx
pop ecx
call fcn.00416c1b
push 1
push str.SeCreateGlobalPrivilege
call fcn.00416d01
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x417e40
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x417e40
push str._main__cant_get_privilege.
push 4
call fcn.0041b5a4
pop ecx
pop ecx
call fcn.00423aec
mov ecx, eax
call fcn.00423b7a
cmp dword [0x5ea18c], 0
jne 0x417e72
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x417e72
push str._main__invalid_game_id_0_
push 4
call fcn.0041b5a4
pop ecx
pop ecx
lea eax, [ebp - 0x4b1]
mov dword [ebp - 0x4b0], eax
lea eax, [ebp - 0x328]
mov dword [ebp - 0x4ec], eax
mov byte [ebp - 4], 0x31
push 0
push 0
lea ecx, [ebp - 0x328]
call fcn.00406430
mov byte [ebp - 4], 0x32
push dword [0x5ea18c]
push str.wegame_launcher
push str._s__d.exe
lea eax, [ebp - 0x328]
push eax
call fcn.0041e3a8
add esp, 0x10
mov dword [ebp - 0x264], 0x32
mov dword [ebp - 0x2ec], 0x12c
push 0
call fcn.0041821b
lea eax, [ebp - 0x328]
push eax
push 0x12c
push 0x32
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
lea ecx, [ebp - 0x290]
call fcn.00410c5b
mov byte [ebp - 4], 0x33
lea ecx, [ebp - 0x290]
call fcn.00421248
movzx eax, byte [ebp - 0x2cd]
test eax, eax
jne 0x417f7f
push 0x56f690
lea ecx, [ebp - 0x1b8]
call fcn.00404e60
mov byte [ebp - 4], 0x34
push dword [ebp - 0x25c]
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.004173ce
add esp, 0xc
mov byte [ebp - 0x2cd], al
mov byte [ebp - 4], 0x35
push 0
push 1
lea ecx, [ebp - 0x1b8]
call fcn.00406660
mov byte [ebp - 4], 0x33
movzx esi, byte [ebp - 0x2cd]
neg esi
sbb esi, esi
neg esi
call fcn.00423aec
mov ecx, eax
call fcn.00423b64
mov dword [eax + 0x54], esi
mov byte [ebp - 4], 0x32
lea ecx, [ebp - 0x290]
call fcn.00410cd1
mov byte [ebp - 4], 0x36
push 0
push 1
lea ecx, [ebp - 0x328]
call fcn.00406430
mov byte [ebp - 4], 0x2b
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x258]
call fcn.0042e781
mov byte [ebp - 4], 0x37
mov byte [ebp - 4], 0x38
lea ecx, [ebp - 0x2e0]
call fcn.00418a9f
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x2e0]
call fcn.0043045d
mov byte [ebp - 4], 0x39
push 0
push 1
lea ecx, [ebp - 0x2cc]
call fcn.00406430
mov byte [ebp - 4], 0x20
mov byte [ebp - 4], 0x3a
push 0
push 1
lea ecx, [ebp - 0x284]
call fcn.00406430
mov byte [ebp - 4], 0x1a
mov byte [ebp - 4], 0x3b
push 0
push 1
lea ecx, [ebp - 0x308]
call fcn.00406430
mov byte [ebp - 4], 0x19
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x2b0]
call fcn.00404bb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x344]
call fcn.00404eb0
jmp 0x4180a9
mov dword [ebp - 4], 1
call fcn.004174bd
call fcn.004292f2
mov dword [ebp - 0x4d4], eax
push 0x1388
mov ecx, dword [ebp - 0x4d4]
call fcn.004292d4
movzx eax, al
test eax, eax
je 0x4180f6
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x4180f4
push str._main_qos_WaitForStop_success
push 4
call fcn.0041b5a4
pop ecx
pop ecx
jmp 0x418113
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x418113
push str._main_qos_WaitForStop_FAIL
push 4
call fcn.0041b5a4
pop ecx
pop ecx
lea ecx, [ebp - 0x1f0]
call fcn.0041066f
push 4
call fcn.0041b640
pop ecx
movzx eax, al
test eax, eax
je 0x41813b
push str._main__process_exit.
push 4
call fcn.0041b5a4
pop ecx
pop ecx
and dword [ebp - 0x388], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f0]
call fcn.004106ae
mov eax, dword [ebp - 0x388]
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.004610a0
leave
ret