Function at 0x58255d
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cc57b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x22634
call fcn.005b3d40
mov eax, dword [0x6a1da0]
xor eax, esp
mov dword [esp + 0x22630], eax
push ebx
push esi
push edi
mov eax, dword [0x6a1da0]
xor eax, esp
push eax
lea eax, [esp + 0x22648]
mov dword fs:[0], eax
push 0x6a9960
push str.1.0.1
push str.Starting_updater__v:_s__cmd:_s_n
call fcn.00589b40
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00584080
mov dword [esp + 0x22650], 0
lea ecx, [esp + 0x2c]
cmp byte [0x74d727], 0
je 0x581fd7
call fcn.00582e20
jmp 0x58278c
call fcn.005879b0
mov ecx, dword [0x74dbe4]
mov dword [0x6a53e4], 0x74e1e8
mov dword [0x6a53e0], 0x74e1e8
test ecx, ecx
je 0x582008
mov eax, dword [ecx]
push 2
push dword [0x6a9950]
push ecx
call dword [eax + 0x28]
call fcn.00589f50
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00589590
call fcn.00589f50
mov eax, dword [0x74db48]
mov dword [0x74db50], 0
mov dword [0x74db4c], eax
call fcn.0057fbd0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x6a8304]
push 0
push 1
call fcn.00590900
mov ecx, dword [0x6a8304]
call fcn.00590740
mov ecx, dword [0x6a8304]
push 0x802
call fcn.0058fd80
push 0xffffffffffffffff
push 0
call fcn.00589e30
add esp, 8
mov dword [esp + 0x24], 0xff404040
lea eax, [esp + 0x24]
push 0
push 0
push eax
mov eax, dword [0x6a8304]
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.00597870
mov eax, dword [esp + 0x20dcc]
add esp, 0x1c
cmp eax, 5
ja case.default.0x5820d0
jmp dword [eax*4 + 0x5827c4]
mov edi, dword [0x74dbdc]
mov esi, dword [0x6a8304]
mov dword [esp + 0x18], 0xffffffff
cmp dword [edi + 8], 0
je 0x5821a8
push 0x3c
lea eax, [esp + 0x21cc4]
push 0
push eax
call fcn.005b2d00
movss xmm0, dword [edi]
lea eax, [esp + 0x21cc8]
add esp, 0xc
movss dword [esp + 0x21cc4], xmm0
movss dword [esp + 0x21ccc], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21cd0], xmm0
push eax
push dword [edi + 8]
lea eax, [esp + 0x20]
movss dword [esp + 0x21ce0], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21cd8], 0
mov dword [esp + 0x21cdc], 0
mov dword [esp + 0x21ce4], 0
mov dword [esp + 0x21cf0], 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.00597870
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.00581020
jmp 0x582633
mov edi, dword [0x74dbd4]
mov esi, dword [0x6a8304]
mov dword [esp + 0x20], 0xffffffff
cmp dword [edi + 8], 0
je 0x582287
push 0x3c
lea eax, [esp + 0x21dc4]
push 0
push eax
call fcn.005b2d00
movss xmm0, dword [edi]
lea eax, [esp + 0x21dc8]
add esp, 0xc
movss dword [esp + 0x21dc4], xmm0
movss dword [esp + 0x21dcc], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21dd0], xmm0
push eax
push dword [edi + 8]
lea eax, [esp + 0x28]
movss dword [esp + 0x21de0], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21dd8], 0
mov dword [esp + 0x21ddc], 0
mov dword [esp + 0x21de4], 0
mov dword [esp + 0x21df0], 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.00597870
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.00580d50
jmp 0x582633
mov edi, dword [0x74dbd0]
mov esi, dword [0x6a8304]
mov dword [esp + 0x10], 0xffffffff
cmp dword [edi + 8], 0
je 0x582366
push 0x3c
lea eax, [esp + 0x21e04]
push 0
push eax
call fcn.005b2d00
movss xmm0, dword [edi]
lea eax, [esp + 0x21e08]
add esp, 0xc
movss dword [esp + 0x21e04], xmm0
movss dword [esp + 0x21e0c], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21e10], xmm0
push eax
push dword [edi + 8]
lea eax, [esp + 0x18]
movss dword [esp + 0x21e20], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21e18], 0
mov dword [esp + 0x21e1c], 0
mov dword [esp + 0x21e24], 0
mov dword [esp + 0x21e30], 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.00597870
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.005807f0
jmp 0x582633
mov edi, dword [0x74dbc8]
mov esi, dword [0x6a8304]
mov dword [esp + 0x14], 0xffffffff
cmp dword [edi + 8], 0
je 0x582445
push 0x3c
lea eax, [esp + 0x21d84]
push 0
push eax
call fcn.005b2d00
movss xmm0, dword [edi]
lea eax, [esp + 0x21d88]
add esp, 0xc
movss dword [esp + 0x21d84], xmm0
movss dword [esp + 0x21d8c], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21d90], xmm0
push eax
push dword [edi + 8]
lea eax, [esp + 0x1c]
movss dword [esp + 0x21da0], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21d98], 0
mov dword [esp + 0x21d9c], 0
mov dword [esp + 0x21da4], 0
mov dword [esp + 0x21db0], 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.00597870
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.00580ac0
jmp 0x582633
mov edi, dword [0x74dbd8]
mov esi, dword [0x6a8304]
mov dword [esp + 0x1c], 0xffffffff
cmp dword [edi + 8], 0
je 0x582524
push 0x3c
lea eax, [esp + 0x21d04]
push 0
push eax
call fcn.005b2d00
movss xmm0, dword [edi]
lea eax, [esp + 0x21d08]
add esp, 0xc
movss dword [esp + 0x21d04], xmm0
movss dword [esp + 0x21d0c], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21d10], xmm0
push eax
push dword [edi + 8]
lea eax, [esp + 0x24]
movss dword [esp + 0x21d20], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21d18], 0
mov dword [esp + 0x21d1c], 0
mov dword [esp + 0x21d24], 0
mov dword [esp + 0x21d30], 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.00597870
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 0x5e9
push str.main.cpp
push 0x674d64
call fcn.0058a010
add esp, 0x10
mov edi, dword [0x74dbcc]
mov esi, dword [0x6a8304]
mov dword [esp + 0x28], 0xffffffff
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x58262d
push 0x3c
lea eax, [esp + 0x21d44]
push 0
push eax
call fcn.005b2d00
movss xmm0, dword [edi]
lea eax, [esp + 0x21d48]
add esp, 0xc
movss dword [esp + 0x21d44], xmm0
movss dword [esp + 0x21d4c], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21d50], xmm0
push eax
push ebx
lea eax, [esp + 0x30]
movss dword [esp + 0x21d60], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21d58], 0
mov dword [esp + 0x21d5c], 0
mov dword [esp + 0x21d64], 0
mov dword [esp + 0x21d70], 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.00597870
add esp, 0x1c
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x2c]
call fcn.00580370
call fcn.005806c0
mov ecx, dword [0x6a8304]
call fcn.0058ded0
mov ecx, dword [0x6a8304]
push 1
call fcn.0058e0c0
cmp byte [0x6a98bc], 0
jne 0x5826a9
push 0
push dword [0x74dbe0]
call ebx
test eax, eax
jne 0x58267e
push 1
push dword [0x6a9950]
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
cmp byte [0x74d726], 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.00587a70
lea ecx, [esp + 0x2c]
call fcn.00587af0
mov ecx, dword [0x74dbe4]
test ecx, ecx
je 0x5826d3
mov eax, dword [ecx]
push 0
push dword [0x6a9950]
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 0x635
push str.main.cpp
push 0x674d64
call fcn.0058a010
add esp, 0x10
jmp 0x582741
lea eax, [esp + 0x211b9]
push eax
lea eax, [esp + 0x21e40]
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 [0x6a9950]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x582741
lea ecx, [esp + 0x2c]
call fcn.00581d10
mov eax, dword [0x74e458]
test eax, eax
je 0x58277d
push 0x2710
push eax
call ebx
cmp eax, 0x102
jne 0x582767
push 0
push dword [0x74e458]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x74e458]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x74e458], 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 + 0x22650], 0xffffffff
call fcn.00584500
mov ecx, dword [esp + 0x22648]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22630]
xor ecx, esp
call fcn.005aec53
mov esp, ebp
pop ebp
ret