Function at 0x581f50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dff2b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2258c
call fcn.005b3fe0
mov eax, dword [0x6b9da0]
xor eax, esp
mov dword [esp + 0x22588], eax
push ebx
push esi
push edi
mov eax, dword [0x6b9da0]
xor eax, esp
push eax
lea eax, [esp + 0x225a0]
mov dword fs:[0], eax
push 0x77ede0
push str.0.1.1
push str.Starting_updater__v:_s__cmd:_s_n
call fcn.00589aa0
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.005840f0
mov dword [esp + 0x225a8], 0
lea ecx, [esp + 0x2c]
cmp byte [0x827737], 0
je 0x581fd7
call fcn.00582e40
jmp 0x58278c
call fcn.00587990
mov ecx, dword [0x827bf4]
mov dword [0x77a504], 0x8281f8
mov dword [0x77a500], 0x8281f8
test ecx, ecx
je 0x582008
mov eax, dword [ecx]
push 2
push dword [0x77edd0]
push ecx
call dword [eax + 0x28]
call fcn.00589eb0
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.005894f0
call fcn.00589eb0
mov eax, dword [0x827b58]
mov dword [0x827b60], 0
mov dword [0x827b5c], eax
call fcn.0057fbd0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x77d784]
push 0
push 1
call fcn.005908b0
mov ecx, dword [0x77d784]
call fcn.005906f0
mov ecx, dword [0x77d784]
push 0x802
call fcn.0058fd30
push 0xffffffffffffffff
push 0
call fcn.00589d90
add esp, 8
mov dword [esp + 0x24], 0xff404040
lea eax, [esp + 0x24]
push 0
push 0
push eax
mov eax, dword [0x77d784]
sub esp, 0x10
movss xmm0, dword [eax + 0x4a0]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [eax + 0x49c]
movss dword [esp + 8], xmm0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00597750
mov eax, dword [esp + 0x20dcc]
add esp, 0x1c
cmp eax, 5
ja case.default.0x5820d0
jmp dword [eax*4 + 0x5827c4]
mov edi, dword [0x827bec]
mov esi, dword [0x77d784]
mov dword [esp + 0x18], 0xffffffff
cmp dword [edi + 8], 0
je 0x5821a8
push 0x3c
lea eax, [esp + 0x21c1c]
push 0
push eax
call fcn.005b2e70
movss xmm0, dword [edi]
lea eax, [esp + 0x21c20]
add esp, 0xc
movss dword [esp + 0x21c1c], xmm0
movss dword [esp + 0x21c24], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21c28], xmm0
push eax
push dword [edi + 8]
lea eax, [esp + 0x20]
movss dword [esp + 0x21c38], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21c30], 0
mov dword [esp + 0x21c34], 0
mov dword [esp + 0x21c3c], 0
mov dword [esp + 0x21c48], 0
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esi + 0x49c]
movss dword [esp + 8], xmm0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00597750
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.00581020
jmp 0x582633
mov edi, dword [0x827be4]
mov esi, dword [0x77d784]
mov dword [esp + 0x20], 0xffffffff
cmp dword [edi + 8], 0
je 0x582287
push 0x3c
lea eax, [esp + 0x21d1c]
push 0
push eax
call fcn.005b2e70
movss xmm0, dword [edi]
lea eax, [esp + 0x21d20]
add esp, 0xc
movss dword [esp + 0x21d1c], xmm0
movss dword [esp + 0x21d24], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21d28], xmm0
push eax
push dword [edi + 8]
lea eax, [esp + 0x28]
movss dword [esp + 0x21d38], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21d30], 0
mov dword [esp + 0x21d34], 0
mov dword [esp + 0x21d3c], 0
mov dword [esp + 0x21d48], 0
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esi + 0x49c]
movss dword [esp + 8], xmm0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00597750
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.00580d50
jmp 0x582633
mov edi, dword [0x827be0]
mov esi, dword [0x77d784]
mov dword [esp + 0x10], 0xffffffff
cmp dword [edi + 8], 0
je 0x582366
push 0x3c
lea eax, [esp + 0x21d5c]
push 0
push eax
call fcn.005b2e70
movss xmm0, dword [edi]
lea eax, [esp + 0x21d60]
add esp, 0xc
movss dword [esp + 0x21d5c], xmm0
movss dword [esp + 0x21d64], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21d68], xmm0
push eax
push dword [edi + 8]
lea eax, [esp + 0x18]
movss dword [esp + 0x21d78], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21d70], 0
mov dword [esp + 0x21d74], 0
mov dword [esp + 0x21d7c], 0
mov dword [esp + 0x21d88], 0
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esi + 0x49c]
movss dword [esp + 8], xmm0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00597750
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.005807f0
jmp 0x582633
mov edi, dword [0x827bd8]
mov esi, dword [0x77d784]
mov dword [esp + 0x14], 0xffffffff
cmp dword [edi + 8], 0
je 0x582445
push 0x3c
lea eax, [esp + 0x21cdc]
push 0
push eax
call fcn.005b2e70
movss xmm0, dword [edi]
lea eax, [esp + 0x21ce0]
add esp, 0xc
movss dword [esp + 0x21cdc], xmm0
movss dword [esp + 0x21ce4], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21ce8], xmm0
push eax
push dword [edi + 8]
lea eax, [esp + 0x1c]
movss dword [esp + 0x21cf8], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21cf0], 0
mov dword [esp + 0x21cf4], 0
mov dword [esp + 0x21cfc], 0
mov dword [esp + 0x21d08], 0
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esi + 0x49c]
movss dword [esp + 8], xmm0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00597750
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.00580ac0
jmp 0x582633
mov edi, dword [0x827be8]
mov esi, dword [0x77d784]
mov dword [esp + 0x1c], 0xffffffff
cmp dword [edi + 8], 0
je 0x582524
push 0x3c
lea eax, [esp + 0x21c5c]
push 0
push eax
call fcn.005b2e70
movss xmm0, dword [edi]
lea eax, [esp + 0x21c60]
add esp, 0xc
movss dword [esp + 0x21c5c], xmm0
movss dword [esp + 0x21c64], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21c68], xmm0
push eax
push dword [edi + 8]
lea eax, [esp + 0x24]
movss dword [esp + 0x21c78], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21c70], 0
mov dword [esp + 0x21c74], 0
mov dword [esp + 0x21c7c], 0
mov dword [esp + 0x21c88], 0
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esi + 0x49c]
movss dword [esp + 8], xmm0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00597750
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.005815f0
lea ecx, [esp + 0x2c]
call fcn.00581bc0
lea ecx, [esp + 0x2c]
call fcn.00581b00
jmp 0x582633
push 0
push 0x5c0
push str.main.cpp
push 0x68b92c
call fcn.00589f70
add esp, 0x10
mov edi, dword [0x827bdc]
mov esi, dword [0x77d784]
mov dword [esp + 0x28], 0xffffffff
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x58262d
push 0x3c
lea eax, [esp + 0x21c9c]
push 0
push eax
call fcn.005b2e70
movss xmm0, dword [edi]
lea eax, [esp + 0x21ca0]
add esp, 0xc
movss dword [esp + 0x21c9c], xmm0
movss dword [esp + 0x21ca4], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21ca8], xmm0
push eax
push ebx
lea eax, [esp + 0x30]
movss dword [esp + 0x21cb8], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21cb0], 0
mov dword [esp + 0x21cb4], 0
mov dword [esp + 0x21cbc], 0
mov dword [esp + 0x21cc8], 0
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esi + 0x49c]
movss dword [esp + 8], xmm0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00597750
add esp, 0x1c
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x2c]
call fcn.00580370
call fcn.005806c0
mov ecx, dword [0x77d784]
call fcn.0058ddf0
mov ecx, dword [0x77d784]
push 1
call fcn.0058dff0
cmp byte [0x77ed3c], 0
jne 0x5826a9
push 0
push dword [0x827bf0]
call ebx
test eax, eax
jne 0x58267e
push 1
push dword [0x77edd0]
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
cmp byte [0x827736], 0
jne 0x5826b2
mov eax, dword [esp + 0x20db4]
test eax, eax
je 0x582013
cmp eax, 1
je 0x582013
jmp 0x5826b2
lea ecx, [esp + 0x2c]
call fcn.00587a30
lea ecx, [esp + 0x2c]
call fcn.00587ab0
mov ecx, dword [0x827bf4]
test ecx, ecx
je 0x5826d3
mov eax, dword [ecx]
push 0
push dword [0x77edd0]
push ecx
call dword [eax + 0x28]
mov eax, dword [esp + 0x20db4]
dec eax
je 0x582738
dec eax
je 0x5826fe
dec eax
je 0x582741
push 0
push 0x60c
push str.main.cpp
push 0x68b92c
call fcn.00589f70
add esp, 0x10
jmp 0x582741
lea eax, [esp + 0x211b9]
push eax
lea eax, [esp + 0x21d98]
push str.There_was_a_problem_updating_the_game_n_s_n_nPlease_retry_later
push eax
call fcn.00582800
add esp, 0xc
lea eax, [esp + 0x211b9]
push 0x10
push str.Error
push eax
push dword [0x77edd0]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x582741
lea ecx, [esp + 0x2c]
call fcn.00581d10
mov eax, dword [0x828468]
test eax, eax
je 0x58277d
push 0x2710
push eax
call ebx
cmp eax, 0x102
jne 0x582767
push 0
push dword [0x828468]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x828468]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x828468], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x225a8], 0xffffffff
call fcn.00584500
mov ecx, dword [esp + 0x225a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22588]
xor ecx, esp
call fcn.005aec30
mov esp, ebp
pop ebp
ret