Function at 0x405ff0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5fe2fd
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x21d44
call fcn.005d4060
mov eax, dword [0x6d4dfc]
xor eax, esp
mov dword [esp + 0x21d40], eax
push ebx
push esi
push edi
mov eax, dword [0x6d4dfc]
xor eax, esp
push eax
lea eax, [esp + 0x21d58]
mov dword fs:[0], eax
push 0x6db5b0
push str.0.0.0
push str.Starting_updater__v:_s__cmd:_s_n
call fcn.005a9af0
add esp, 0xc
lea eax, [esp + 0xbc]
push eax
call fcn.004082d0
xor esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x21d60], esi
push ecx
mov dword [esp + 0x1c], esi
call fcn.00405eb0
mov ebx, dword [esp + 0x1c]
add esp, 4
mov edi, eax
test ebx, ebx
jle 0x4060cc
lea ecx, [ecx]
mov eax, dword [edi + esi*4]
mov ecx, str._steam
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4060a8
test dl, dl
je 0x4060a4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4060a8
add eax, 2
add ecx, 2
test dl, dl
jne 0x406088
xor eax, eax
jmp 0x4060ad
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4060c7
cmp esi, ebx
jge 0x4060c7
push str.Trying_to_init_steam_n
call fcn.005a9af0
add esp, 4
call fcn.00407b00
inc esi
cmp esi, ebx
jl 0x406080
cmp byte [0x78029c], 0
je 0x4060f9
lea ecx, [esp + 0xbc]
call fcn.00406de0
lea edx, [esp + 0xbc]
mov dword [esp + 0x21d60], 0xffffffff
push edx
jmp 0x406692
lea esi, [esp + 0xbc]
call fcn.0040b8f0
mov eax, 0x780208
mov dword [0x6d76a4], eax
mov dword [0x6d76a8], eax
mov eax, dword [0x7802a0]
test eax, eax
je 0x40612e
mov edx, dword [0x6db9dc]
mov ecx, dword [eax]
push 2
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
call fcn.005a9830
call fcn.005a9880
call fcn.005a9830
mov ecx, dword [0x780200]
mov dword [0x780330], 0
mov dword [0x780334], ecx
call fcn.00403e10
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x6dba44]
push 0
push 1
call fcn.005b0840
mov ecx, dword [0x6dba44]
call fcn.005aeb60
mov ecx, dword [0x6dba44]
push 0x802
call fcn.005acea0
or ebx, 0xffffffff
push ebx
push 0
call fcn.005a9650
mov eax, dword [0x6dba44]
fld dword [eax + 0x4a0]
add esp, 8
push 0
push 0
lea edx, [esp + 0x38]
push edx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x4c], 0xff404040
fld dword [eax + 0x49c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.005b7210
mov eax, dword [esp + 0x20ec4]
add esp, 0x1c
cmp eax, 5
ja case.default.0x4061e6
jmp dword [eax*4 + 0x4066bc]
mov esi, dword [0x7802a8]
lea eax, [esp + 0x24]
push eax
mov eax, dword [0x6dba44]
fld dword [eax + 0x4a0]
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x38], ebx
fld dword [eax + 0x49c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407df0
lea eax, [esp + 0xbc]
call fcn.00405040
jmp 0x40641d
mov eax, dword [0x6dba44]
fld dword [eax + 0x4a0]
mov esi, dword [0x7802b0]
lea ecx, [esp + 0x38]
push ecx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x4c], ebx
fld dword [eax + 0x49c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407df0
lea ecx, [esp + 0xbc]
call fcn.00404d40
jmp 0x40641d
mov eax, dword [0x6dba44]
fld dword [eax + 0x4a0]
mov esi, dword [0x7802b4]
lea edx, [esp + 0x28]
push edx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x3c], ebx
fld dword [eax + 0x49c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407df0
lea eax, [esp + 0xbc]
call fcn.004048c0
jmp 0x40641d
mov esi, dword [0x7802bc]
lea eax, [esp + 0x34]
push eax
mov eax, dword [0x6dba44]
fld dword [eax + 0x4a0]
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x48], ebx
fld dword [eax + 0x49c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407df0
lea edi, [esp + 0xbc]
call fcn.00404b70
jmp 0x40641d
mov eax, dword [0x6dba44]
fld dword [eax + 0x4a0]
mov esi, dword [0x7802ac]
lea ecx, [esp + 0x1c]
push ecx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x30], ebx
fld dword [eax + 0x49c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.00407df0
lea ebx, [esp + 0xbc]
call fcn.00405580
mov eax, ebx
call fcn.00405a20
mov ecx, ebx
call fcn.00405950
or ebx, 0xffffffff
jmp 0x40641d
push 0
push 0x5d1
push str..main.cpp
push 0x6a6124
call fcn.005a9e00
add esp, 0x10
mov eax, dword [0x6dba44]
mov esi, dword [0x7802b8]
mov dword [esp + 0x20], ebx
fld dword [eax + 0x49c]
mov edi, dword [esi + 8]
fstp dword [esp + 0x14]
fld dword [eax + 0x4a0]
fstp dword [esp + 0x18]
test edi, edi
je 0x40641d
push 0x3c
lea edx, [esp + 0x44]
push 0
push edx
call fcn.005d3190
fldz
fst dword [esp + 0x48]
add esp, 0xc
fst dword [esp + 0x40]
lea eax, [esp + 0x3c]
fld dword [esi]
push eax
fstp dword [esp + 0x48]
push edi
lea ecx, [esp + 0x28]
push ecx
fst dword [esp + 0x54]
sub esp, 0x10
fld dword [esi]
fstp dword [esp + 0x68]
fld dword [esi + 4]
fstp dword [esp + 0x6c]
fst dword [esp + 0x70]
fld dword [esi + 4]
fstp dword [esp + 0x74]
fld dword [esp + 0x34]
fstp dword [esp + 0xc]
fld dword [esp + 0x30]
fstp dword [esp + 8]
fst dword [esp + 4]
fstp dword [esp]
call fcn.005b7210
add esp, 0x1c
lea edi, [esp + 0xbc]
call fcn.00404670
fild dword [0x780328]
mov dword [esp + 0x2c], ebx
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x6d73c4]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x406541
fadd dword [0x6d73cc]
fcompp
fnstsw ax
test ah, 1
jne 0x406545
fild dword [0x78032c]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x6d73c8]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x406541
fadd dword [0x6d73d0]
fcompp
fnstsw ax
test ah, 1
jne 0x406545
mov esi, dword [0x7802d8]
mov edi, dword [esi + 8]
test edi, edi
je 0x40652f
push 0x3c
lea edx, [esp + 0x84]
push 0
push edx
call fcn.005d3190
fldz
fst dword [esp + 0x88]
add esp, 0xc
fst dword [esp + 0x80]
lea eax, [esp + 0x7c]
fld dword [esi]
push eax
fstp dword [esp + 0x88]
push edi
lea ecx, [esp + 0x34]
push ecx
fst dword [esp + 0x94]
sub esp, 0x10
fld dword [esi]
fstp dword [esp + 0xa8]
fld dword [esi + 4]
fstp dword [esp + 0xac]
fst dword [esp + 0xb0]
fld dword [esi + 4]
fstp dword [esp + 0xb4]
fld dword [0x6a820c]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [0x6a8208]
fstp dword [esp]
call fcn.005b7210
add esp, 0x1c
cmp dword [0x780330], 0
je 0x406545
mov byte [0x6db9e8], 1
jmp 0x406545
fstp st(1)
fstp st(0)
mov ecx, dword [0x6dba44]
call fcn.005af950
mov ecx, dword [0x6dba44]
push 1
call fcn.005b00c0
cmp byte [0x6db9e8], 0
jne 0x4065b2
mov edx, dword [0x7802a4]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x406587
mov eax, dword [0x6db9dc]
push 1
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
cmp byte [0x78029d], 0
jne 0x4065be
mov eax, dword [esp + 0x20eac]
test eax, eax
je 0x406133
cmp eax, 1
je 0x406133
jmp 0x4065be
lea esi, [esp + 0xbc]
call fcn.0040b9a0
lea eax, [esp + 0xbc]
call fcn.0040ba20
mov eax, dword [0x7802a0]
test eax, eax
je 0x4065e4
mov edx, dword [0x6db9dc]
mov ecx, dword [eax]
push 0
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [esp + 0x20eac]
sub eax, 1
je 0x406627
sub eax, 1
je 0x406615
sub eax, 1
je 0x406633
push 0
push 0x61d
push str..main.cpp
push 0x6a6124
call fcn.005a9e00
add esp, 0x10
jmp 0x406633
lea ecx, [esp + 0xbc]
push ecx
call fcn.00405bd0
add esp, 4
jmp 0x406633
lea ecx, [esp + 0xbc]
call fcn.00405ca0
mov eax, dword [0x780f90]
test eax, eax
je 0x406674
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40665e
mov edx, dword [0x780f90]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x780f90]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x780f90], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0xbc]
mov dword [esp + 0x21d60], ebx
push ecx
call fcn.00408640
mov ecx, dword [esp + 0x21d58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x21d40]
xor ecx, esp
call fcn.005cfa37
mov esp, ebp
pop ebp
ret