Function at 0x581ea0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cc41b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2258c
call fcn.005b3d60
mov eax, dword [0x6a1da0]
xor eax, esp
mov dword [esp + 0x22588], eax
push ebx
push esi
push edi
mov eax, dword [0x6a1da0]
xor eax, esp
push eax
lea eax, [esp + 0x225a0]
mov dword fs:[0], eax
push 0x6a9960
push str.0.1.3
push str.Starting_updater__v:_s__cmd:_s_n
call fcn.00589970
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00584010
mov dword [esp + 0x225a8], 0
lea ecx, [esp + 0x2c]
cmp byte [0x74d737], 0
je 0x581f27
call fcn.00582d70
jmp 0x5826dc
call fcn.005878b0
mov ecx, dword [0x74dbf4]
mov dword [0x6a53e4], 0x74e1f8
mov dword [0x6a53e0], 0x74e1f8
test ecx, ecx
je 0x581f58
mov eax, dword [ecx]
push 2
push dword [0x6a9950]
push ecx
call dword [eax + 0x28]
call fcn.00589d80
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.005893c0
call fcn.00589d80
mov eax, dword [0x74db58]
mov dword [0x74db60], 0
mov dword [0x74db5c], eax
call fcn.0057fb40
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x6a8304]
push 0
push 1
call fcn.00590800
mov ecx, dword [0x6a8304]
call fcn.00590640
mov ecx, dword [0x6a8304]
push 0x802
call fcn.0058fc50
push 0xffffffffffffffff
push 0
call fcn.00589c60
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.00597730
mov eax, dword [esp + 0x20dcc]
add esp, 0x1c
cmp eax, 5
ja case.default.0x582020
jmp dword [eax*4 + 0x582714]
mov edi, dword [0x74dbec]
mov esi, dword [0x6a8304]
mov dword [esp + 0x18], 0xffffffff
cmp dword [edi + 8], 0
je 0x5820f8
push 0x3c
lea eax, [esp + 0x21c1c]
push 0
push eax
call fcn.005b2bf0
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.00597730
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.00580fa0
jmp 0x582583
mov edi, dword [0x74dbe4]
mov esi, dword [0x6a8304]
mov dword [esp + 0x20], 0xffffffff
cmp dword [edi + 8], 0
je 0x5821d7
push 0x3c
lea eax, [esp + 0x21d1c]
push 0
push eax
call fcn.005b2bf0
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.00597730
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.00580cc0
jmp 0x582583
mov edi, dword [0x74dbe0]
mov esi, dword [0x6a8304]
mov dword [esp + 0x10], 0xffffffff
cmp dword [edi + 8], 0
je 0x5822b6
push 0x3c
lea eax, [esp + 0x21d5c]
push 0
push eax
call fcn.005b2bf0
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.00597730
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.00580760
jmp 0x582583
mov edi, dword [0x74dbd8]
mov esi, dword [0x6a8304]
mov dword [esp + 0x14], 0xffffffff
cmp dword [edi + 8], 0
je 0x582395
push 0x3c
lea eax, [esp + 0x21cdc]
push 0
push eax
call fcn.005b2bf0
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.00597730
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.00580a30
jmp 0x582583
mov edi, dword [0x74dbe8]
mov esi, dword [0x6a8304]
mov dword [esp + 0x1c], 0xffffffff
cmp dword [edi + 8], 0
je 0x582474
push 0x3c
lea eax, [esp + 0x21c5c]
push 0
push eax
call fcn.005b2bf0
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.00597730
add esp, 0x1c
lea ecx, [esp + 0x2c]
call fcn.00581570
lea ecx, [esp + 0x2c]
call fcn.00581b40
lea ecx, [esp + 0x2c]
call fcn.00581a80
jmp 0x582583
push 0
push 0x5c1
push str.main.cpp
push 0x674d44
call fcn.00589e40
add esp, 0x10
mov edi, dword [0x74dbdc]
mov esi, dword [0x6a8304]
mov dword [esp + 0x28], 0xffffffff
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x58257d
push 0x3c
lea eax, [esp + 0x21c9c]
push 0
push eax
call fcn.005b2bf0
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.00597730
add esp, 0x1c
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x2c]
call fcn.005802e0
call fcn.00580630
mov ecx, dword [0x6a8304]
call fcn.0058dd30
mov ecx, dword [0x6a8304]
push 1
call fcn.0058df40
cmp byte [0x6a98bc], 0
jne 0x5825f9
push 0
push dword [0x74dbf0]
call ebx
test eax, eax
jne 0x5825ce
push 1
push dword [0x6a9950]
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
cmp byte [0x74d736], 0
jne 0x582602
mov eax, dword [esp + 0x20db4]
test eax, eax
je 0x581f63
cmp eax, 1
je 0x581f63
jmp 0x582602
lea ecx, [esp + 0x2c]
call fcn.00587950
lea ecx, [esp + 0x2c]
call fcn.005879d0
mov ecx, dword [0x74dbf4]
test ecx, ecx
je 0x582623
mov eax, dword [ecx]
push 0
push dword [0x6a9950]
push ecx
call dword [eax + 0x28]
mov eax, dword [esp + 0x20db4]
dec eax
je 0x582688
dec eax
je 0x58264e
dec eax
je 0x582691
push 0
push 0x60d
push str.main.cpp
push 0x674d44
call fcn.00589e40
add esp, 0x10
jmp 0x582691
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.00582750
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 0x582691
lea ecx, [esp + 0x2c]
call fcn.00581c90
mov eax, dword [0x74e468]
test eax, eax
je 0x5826cd
push 0x2710
push eax
call ebx
cmp eax, 0x102
jne 0x5826b7
push 0
push dword [0x74e468]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x74e468]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x74e468], 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.00584420
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.005aeae3
mov esp, ebp
pop ebp
ret