Function at 0x581f50
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ccbbb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2261c
call fcn.005b4350
mov eax, dword [0x6a1da0]
xor eax, esp
mov dword [esp + 0x22618], eax
push ebx
push esi
push edi
mov eax, dword [0x6a1da0]
xor eax, esp
push eax
lea eax, [esp + 0x22630]
mov dword fs:[0], eax
push 0x6a9960
push str.1.0.3
push str.Starting_updater__v:_s__cmd:_s_n
call fcn.0058a180
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00584240
mov dword [esp + 0x22638], 0
lea ecx, [esp + 0x2c]
cmp byte [0x74d727], 0
je 0x581fd7
call fcn.00583050
jmp 0x58278c
call fcn.00587bc0
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.0058a590
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00589bd0
call fcn.0058a590
mov eax, dword [0x74db48]
mov dword [0x74db50], 0
mov dword [0x74db4c], eax
call fcn.0057fbf0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x6a8304]
push 0
push 1
call fcn.00590fd0
mov ecx, dword [0x6a8304]
call fcn.00590e10
mov ecx, dword [0x6a8304]
push 0x802
call fcn.00590450
push 0xffffffffffffffff
push 0
call fcn.0058a470
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.00597ec0
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 + 0x21cac]
push 0
push eax
call fcn.005b3310
movss xmm0, dword [edi]
lea eax, [esp + 0x21cb0]
add esp, 0xc
movss dword [esp + 0x21cac], xmm0
movss dword [esp + 0x21cb4], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21cb8], xmm0
push eax
push dword [edi + 8]
lea eax, [esp + 0x20]
movss dword [esp + 0x21cc8], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21cc0], 0
mov dword [esp + 0x21cc4], 0
mov dword [esp + 0x21ccc], 0
mov dword [esp + 0x21cd8], 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.00597ec0
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.00581040
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 + 0x21dac]
push 0
push eax
call fcn.005b3310
movss xmm0, dword [edi]
lea eax, [esp + 0x21db0]
add esp, 0xc
movss dword [esp + 0x21dac], xmm0
movss dword [esp + 0x21db4], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21db8], xmm0
push eax
push dword [edi + 8]
lea eax, [esp + 0x28]
movss dword [esp + 0x21dc8], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21dc0], 0
mov dword [esp + 0x21dc4], 0
mov dword [esp + 0x21dcc], 0
mov dword [esp + 0x21dd8], 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.00597ec0
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.00580d70
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 + 0x21dec]
push 0
push eax
call fcn.005b3310
movss xmm0, dword [edi]
lea eax, [esp + 0x21df0]
add esp, 0xc
movss dword [esp + 0x21dec], xmm0
movss dword [esp + 0x21df4], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21df8], xmm0
push eax
push dword [edi + 8]
lea eax, [esp + 0x18]
movss dword [esp + 0x21e08], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21e00], 0
mov dword [esp + 0x21e04], 0
mov dword [esp + 0x21e0c], 0
mov dword [esp + 0x21e18], 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.00597ec0
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.00580810
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 + 0x21d6c]
push 0
push eax
call fcn.005b3310
movss xmm0, dword [edi]
lea eax, [esp + 0x21d70]
add esp, 0xc
movss dword [esp + 0x21d6c], xmm0
movss dword [esp + 0x21d74], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21d78], xmm0
push eax
push dword [edi + 8]
lea eax, [esp + 0x1c]
movss dword [esp + 0x21d88], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21d80], 0
mov dword [esp + 0x21d84], 0
mov dword [esp + 0x21d8c], 0
mov dword [esp + 0x21d98], 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.00597ec0
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.00580ae0
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 + 0x21cec]
push 0
push eax
call fcn.005b3310
movss xmm0, dword [edi]
lea eax, [esp + 0x21cf0]
add esp, 0xc
movss dword [esp + 0x21cec], xmm0
movss dword [esp + 0x21cf4], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21cf8], xmm0
push eax
push dword [edi + 8]
lea eax, [esp + 0x24]
movss dword [esp + 0x21d08], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21d00], 0
mov dword [esp + 0x21d04], 0
mov dword [esp + 0x21d0c], 0
mov dword [esp + 0x21d18], 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.00597ec0
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.00581610
lea ecx, [esp + 0x2c]
call fcn.00581be0
lea ecx, [esp + 0x2c]
call fcn.00581b20
jmp 0x582633
push 0
push 0x5e9
push str.main.cpp
push str.0___.
call fcn.0058a650
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 + 0x21d2c]
push 0
push eax
call fcn.005b3310
movss xmm0, dword [edi]
lea eax, [esp + 0x21d30]
add esp, 0xc
movss dword [esp + 0x21d2c], xmm0
movss dword [esp + 0x21d34], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x21d38], xmm0
push eax
push ebx
lea eax, [esp + 0x30]
movss dword [esp + 0x21d48], xmm0
movss xmm0, dword [esi + 0x4a0]
push eax
sub esp, 0x10
mov dword [esp + 0x21d40], 0
mov dword [esp + 0x21d44], 0
mov dword [esp + 0x21d4c], 0
mov dword [esp + 0x21d58], 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.00597ec0
add esp, 0x1c
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x2c]
call fcn.00580390
call fcn.005806e0
mov ecx, dword [0x6a8304]
call fcn.0058e550
mov ecx, dword [0x6a8304]
push 1
call fcn.0058e740
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.00587c80
lea ecx, [esp + 0x2c]
call fcn.00587d00
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 str.0___.
call fcn.0058a650
add esp, 0x10
jmp 0x582741
lea eax, [esp + 0x211b9]
push eax
lea eax, [esp + 0x21e28]
push str.There_was_a_problem_updating_the_game_n_s_n_nPlease_retry_later
push eax
call fcn.00582a00
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.00581d30
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 + 0x22638], 0xffffffff
call fcn.005846c0
mov ecx, dword [esp + 0x22630]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x22618]
xor ecx, esp
call fcn.005af263
mov esp, ebp
pop ebp
ret