Function at 0x405e70
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5bf49d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x21eac
call fcn.00595430
mov eax, dword [0x68fddc]
xor eax, esp
mov dword [esp + 0x21ea8], eax
push ebx
push esi
push edi
mov eax, dword [0x68fddc]
xor eax, esp
push eax
lea eax, [esp + 0x21ec0]
mov dword fs:[0], eax
push 0x6970d0
push 0x6925b8
push str.Starting_updater__v:_s__cmd:_s_n
call fcn.0056ac30
add esp, 0xc
lea eax, [esp + 0xbc]
push eax
call fcn.00408180
xor esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x21ec8], esi
push ecx
mov dword [esp + 0x1c], esi
call fcn.00405d30
mov ebx, dword [esp + 0x1c]
add esp, 4
mov edi, eax
test ebx, ebx
jle 0x405f4c
lea ecx, [ecx]
mov eax, dword [edi + esi*4]
mov ecx, str._steam
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405f28
test dl, dl
je 0x405f24
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405f28
add eax, 2
add ecx, 2
test dl, dl
jne 0x405f08
xor eax, eax
jmp 0x405f2d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405f47
cmp esi, ebx
jge 0x405f47
push str.Trying_to_init_steam_n
call fcn.0056ac30
add esp, 4
call fcn.004079b0
inc esi
cmp esi, ebx
jl 0x405f00
cmp byte [0x73c52c], 0
je 0x405f71
lea ecx, [esp + 0xbc]
call fcn.00406c90
mov dword [esp + 0x21ec8], 0xffffffff
jmp 0x406509
lea esi, [esp + 0xbc]
call fcn.0040ba30
mov eax, 0x73c498
mov dword [0x6925b0], eax
mov dword [0x6925b4], eax
mov eax, dword [0x73c530]
test eax, eax
je 0x405fa6
mov edx, dword [0x697a0c]
mov ecx, dword [eax]
push 2
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
call fcn.0056a970
call fcn.0056a9c0
call fcn.0056a970
mov ecx, dword [0x73c490]
mov dword [0x73c5c0], 0
mov dword [0x73c5c4], ecx
call fcn.00403c20
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x697a84]
push 0
push 1
call fcn.005719e0
mov ecx, dword [0x697a84]
call fcn.0056fd20
mov ecx, dword [0x697a84]
push 0x802
call fcn.0056e020
or ebx, 0xffffffff
push ebx
push 0
call fcn.0056a790
mov eax, dword [0x697a84]
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.00578620
mov eax, dword [esp + 0x20ec4]
add esp, 0x1c
cmp eax, 5
ja case.default.0x40605e
jmp dword [eax*4 + 0x40653c]
mov esi, dword [0x73c538]
lea eax, [esp + 0x24]
push eax
mov eax, dword [0x697a84]
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.00407ca0
lea ecx, [esp + 0xbc]
call fcn.00404eb0
jmp 0x406295
mov eax, dword [0x697a84]
fld dword [eax + 0x4a0]
mov esi, dword [0x73c540]
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.00407ca0
lea ecx, [esp + 0xbc]
call fcn.00404b90
jmp 0x406295
mov eax, dword [0x697a84]
fld dword [eax + 0x4a0]
mov esi, dword [0x73c544]
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.00407ca0
lea eax, [esp + 0xbc]
call fcn.004046d0
jmp 0x406295
mov esi, dword [0x73c54c]
lea eax, [esp + 0x34]
push eax
mov eax, dword [0x697a84]
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.00407ca0
lea edi, [esp + 0xbc]
call fcn.004049a0
jmp 0x406295
mov eax, dword [0x697a84]
fld dword [eax + 0x4a0]
mov esi, dword [0x73c53c]
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.00407ca0
lea ebx, [esp + 0xbc]
call fcn.004054d0
mov eax, ebx
call fcn.00405950
mov ecx, ebx
call fcn.00405880
or ebx, 0xffffffff
jmp 0x406295
push 0
push 0x5dd
push str..main.cpp
push 0x662a18
call fcn.0056af40
add esp, 0x10
mov eax, dword [0x697a84]
mov esi, dword [0x73c548]
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 0x406295
push 0x3c
lea edx, [esp + 0x44]
push 0
push edx
call fcn.005945a0
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.00578620
add esp, 0x1c
lea edi, [esp + 0xbc]
call fcn.00404480
fild dword [0x73c5b8]
mov dword [esp + 0x2c], ebx
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x6923a4]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x4063bf
fadd dword [0x6923ac]
fcompp
fnstsw ax
test ah, 1
jne 0x4063c3
fild dword [0x73c5bc]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x6923a8]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x4063bf
fadd dword [0x6923b0]
fcompp
fnstsw ax
test ah, 1
jne 0x4063c3
mov esi, dword [0x73c568]
mov edi, dword [esi + 8]
test edi, edi
je 0x4063ad
push 0x3c
lea edx, [esp + 0x84]
push 0
push edx
call fcn.005945a0
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]
fstp dword [esp + 0xb0]
fld dword [esi + 4]
fstp dword [esp + 0xb4]
fld dword [0x664a24]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [0x664a20]
fstp dword [esp + 4]
fld dword [0x664a1c]
fstp dword [esp]
call fcn.00578620
add esp, 0x1c
cmp dword [0x73c5c0], 0
je 0x4063c3
mov byte [0x697a18], 1
jmp 0x4063c3
fstp st(1)
fstp st(0)
mov ecx, dword [0x697a84]
call fcn.00570af0
mov ecx, dword [0x697a84]
push 1
call fcn.00571260
cmp byte [0x697a18], 0
jne 0x406430
mov edx, dword [0x73c534]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x406405
mov eax, dword [0x697a0c]
push 1
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push 0
call dword [sym.imp.USER32.dll_ClipCursor]
cmp byte [0x73c52d], 0
jne 0x40643c
mov eax, dword [esp + 0x20eac]
test eax, eax
je 0x405fab
cmp eax, 1
je 0x405fab
jmp 0x40643c
lea esi, [esp + 0xbc]
call fcn.0040bae0
lea eax, [esp + 0xbc]
call fcn.0040bb60
mov eax, dword [0x73c530]
test eax, eax
je 0x406462
mov edx, dword [0x697a0c]
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 0x4064a2
sub eax, 1
je 0x406493
sub eax, 1
je 0x4064b2
push 0
push 0x629
push str..main.cpp
push 0x662a18
call fcn.0056af40
add esp, 0x10
jmp 0x4064b2
lea ecx, [esp + 0xbc]
push ecx
call fcn.004059c0
jmp 0x4064af
lea edx, [esp + 0xbc]
push edx
call fcn.00405a90
add esp, 4
mov eax, dword [0x73ce10]
test eax, eax
je 0x4064f3
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4064dc
mov eax, dword [0x73ce10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x73ce10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x73ce10], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 0x21ec8], ebx
lea edx, [esp + 0xbc]
push edx
call fcn.00408530
mov ecx, dword [esp + 0x21ec0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x21ea8]
xor ecx, esp
call fcn.00590ba7
mov esp, ebp
pop ebp
ret