Function at 0x405d90
Capabilities:
Create process on windows
Create process suspended
Get common file path
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6119db
mov eax, dword fs:[0]
push eax
mov eax, 0x25f4
call fcn.005e31b0
mov eax, dword [0x6efdcc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Starting_game_n
mov ebx, ecx
call fcn.005b8d00
inc dword [0x831820]
add esp, 4
push 6
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x2594]
push eax
lea ecx, [ebp - 0x2598]
push ecx
push str.ExEWarZ.exe
call fcn.005b99e0
add esp, 0xc
test al, al
jne 0x405e16
push str.failed1_n
call fcn.005b8d00
add esp, 4
jmp 0x405e31
mov edx, dword [ebp - 0x2594]
mov eax, dword [ebp - 0x2598]
push edx
push eax
push str._08x__d_n
call fcn.005b8d00
add esp, 0xc
lea ecx, [ebx + 0x2169c]
push ecx
lea edi, [ebp - 0x618]
call fcn.0040e660
mov esi, edi
call fcn.00405d20
test al, al
je 0x405e74
push 0xffffffffffffffff
call fcn.005c6c70
add esp, 4
push eax
push 0xffffffffffffffff
call fcn.005c6c70
add esp, 4
push eax
mov edx, edi
push str._08X_08X
push edx
call fcn.00401ac0
add esp, 0x10
lea eax, [ebp - 0x618]
push eax
push 0x830f70
lea ecx, [ebp - 0xe18]
push str._WOUpdatedOk__s__WOLogin___s_
push ecx
call fcn.00406c80
add esp, 0x10
cmp dword [ebx + 0x21d54], 0
jbe 0x405ee8
lea eax, [ebp - 0xe18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ea6
sub eax, edx
cmp dword [ebx + 0x21d58], 0x10
lea edx, [ebp + eax - 0xe18]
mov dword [ebp - 0x2590], edx
jb 0x405ecd
mov ebx, dword [ebx + 0x21d44]
jmp 0x405ed3
add ebx, 0x21d44
push ebx
lea eax, [ebp - 0x2590]
push str.__survey___s_
push eax
call fcn.0040e7e0
add esp, 0xc
cmp dword [0x8d8674], 0
jl 0x405f2f
jg 0x405efc
cmp dword [0x8d8670], 0
jbe 0x405f2f
lea eax, [ebp - 0xe18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405f05
sub eax, edx
lea edx, [ebp - 0x2590]
lea ecx, [ebp + eax - 0xe18]
push str.__steam
push edx
mov dword [ebp - 0x2590], ecx
call fcn.0040e7e0
add esp, 8
push 0x5b7b10
call fcn.005b75c0
add esp, 4
jmp 0x405fa2
mov eax, dword [0x8d87a4]
mov esi, dword [0x8d87a0]
lea ecx, [ebp - 0x258f]
push ecx
lea edx, [ebp - 0x2590]
push edx
lea edi, [ebp - 0x258d]
lea ebx, [ebp - 0x258e]
mov dword [ebp - 0x2590], eax
call fcn.00410420
add esp, 8
cmp byte [ebp - 0x2590], 0
jne 0x406053
jmp 0x406044
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call fcn.005e710a
jmp 0x4060b9
xor ebx, ebx
cmp dword [0x8d73fc], ebx
je 0x4060e3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x8d73fc]
cmp eax, 0x493e0
jbe 0x4060e3
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push ebx
call fcn.005e710a
jmp 0x406149
mov edi, dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
lea eax, [ebp - 0x258c]
push eax
push ebx
push 1
push ebx
mov dword [ebp - 0x258c], ebx
call edi
mov ecx, dword [ebp - 0x258c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea edx, [ebp - 0x258c]
push edx
push ebx
mov esi, eax
push 1
push esi
call edi
push ebx
push ebx
push 8
lea eax, [ebp - 0x25a0]
push eax
push 0x20007
push ebx
push esi
mov dword [ebp - 0x25a0], ebx
mov dword [ebp - 0x259c], 1
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
push 0x44
lea ecx, [ebp - 0x25f4]
push ebx
push ecx
call fcn.005e2200
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
mov dword [ebp - 0x25f8], 0x48
mov dword [ebp - 0x25b4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0xe18]
push eax
push str.ExEWarZ.exe
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x2588]
push str.__s_hs___hs
push edx
mov edx, 0xbb8
call fcn.0040fc50
add esp, 0x14
push ebx
push ebx
push 0xffffffffffffffff
push str.ExEWarZ.exe
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xfde9
call ebx
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005babf0
add esp, 4
push esi
mov edi, eax
push edi
push 0xffffffffffffffff
push str.ExEWarZ.exe
push 0
push 0xfde9
call ebx
lea eax, [ebp - 0x25b0]
push eax
lea ecx, [ebp - 0x25f8]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push 0x80004
push 0
push 0
push 0
lea eax, [ebp - 0x2588]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 0x25ac]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [0x831820], 0
je 0x4062a0
dec dword [0x831820]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005de817
mov esp, ebp
pop ebp
ret