Function at 0x407070
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5caeed
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x21d44
call fcn.005805c0
mov eax, dword [0x6926e4]
xor eax, esp
mov dword [esp + 0x21d40], eax
push ebx
push esi
push edi
mov eax, dword [0x6926e4]
xor eax, esp
push eax
lea eax, [esp + 0x21d58]
mov dword fs:[0], eax
push 0x6985e0
push str.0.9.3
push str.Starting_updater__v:_s__cmd:_s_n
call fcn.0055a180
add esp, 0xc
lea eax, [esp + 0xbc]
push eax
call fcn.00408a40
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x21d60], ebx
push ecx
mov dword [esp + 0x1c], ebx
call fcn.00406f30
add esp, 4
cmp byte [0x73b48c], bl
je 0x407114
lea ecx, [esp + 0xbc]
call fcn.00407a40
lea edx, [esp + 0xbc]
push edx
jmp 0x4076a0
lea esi, [esp + 0xbc]
call fcn.0040bdd0
mov eax, 0x73b3f8
mov dword [0x694e80], eax
mov dword [0x694e84], eax
mov eax, dword [0x73b490]
cmp eax, ebx
je 0x407149
mov edx, dword [0x698a0c]
mov ecx, dword [eax]
push 2
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
call fcn.00559ec0
mov edi, edi
call fcn.00559f20
call fcn.00559ec0
mov ecx, dword [0x73b3f0]
mov dword [0x73b51c], ebx
mov dword [0x73b520], ecx
call fcn.00404d20
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x698a6c]
push ebx
push 1
call fcn.00560880
mov ecx, dword [0x698a6c]
call fcn.0055ec10
mov ecx, dword [0x698a6c]
push 0x802
call fcn.0055d360
or esi, 0xffffffff
push esi
push ebx
call fcn.00559d20
mov eax, dword [0x698a6c]
fld dword [eax + 0x490]
add esp, 8
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x4c], 0xff404040
fld dword [eax + 0x48c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.005669e0
mov eax, dword [esp + 0x20ec4]
add esp, 0x1c
cmp eax, 5
ja case.default.0x4071fb
jmp dword [eax*4 + 0x4076d4]
lea eax, [esp + 0x24]
push eax
mov eax, dword [0x698a6c]
fld dword [eax + 0x490]
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x38], esi
fld dword [eax + 0x48c]
mov esi, dword [0x73b498]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.004084e0
lea ecx, [esp + 0xbc]
call fcn.00405f60
jmp 0x40743b
mov eax, dword [0x698a6c]
fld dword [eax + 0x490]
lea ecx, [esp + 0x38]
push ecx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x4c], esi
fld dword [eax + 0x48c]
mov esi, dword [0x73b4a0]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.004084e0
lea ecx, [esp + 0xbc]
call fcn.00405c40
jmp 0x40743b
mov eax, dword [0x698a6c]
fld dword [eax + 0x490]
lea edx, [esp + 0x28]
push edx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x3c], esi
fld dword [eax + 0x48c]
mov esi, dword [0x73b4a4]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.004084e0
lea eax, [esp + 0xbc]
call fcn.004057b0
jmp 0x40743b
lea eax, [esp + 0x34]
push eax
mov eax, dword [0x698a6c]
fld dword [eax + 0x490]
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x48], esi
fld dword [eax + 0x48c]
mov esi, dword [0x73b4ac]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.004084e0
lea edi, [esp + 0xbc]
call fcn.00405a40
jmp 0x40743b
mov eax, dword [0x698a6c]
fld dword [eax + 0x490]
lea ecx, [esp + 0x1c]
push ecx
sub esp, 0x10
fstp dword [esp + 0xc]
mov dword [esp + 0x30], esi
fld dword [eax + 0x48c]
mov esi, dword [0x73b49c]
fstp dword [esp + 8]
fldz
fst dword [esp + 4]
fstp dword [esp]
call fcn.004084e0
lea edx, [esp + 0xbc]
push edx
call fcn.00406620
add esp, 4
lea eax, [esp + 0xbc]
call fcn.00406b60
lea ecx, [esp + 0xbc]
call fcn.00406a90
jmp 0x40743b
push ebx
push 0x5b4
push str..main.cpp
push 0x666f00
call fcn.0055a490
add esp, 0x10
mov eax, dword [0x698a6c]
mov dword [esp + 0x20], esi
fld dword [eax + 0x48c]
mov esi, dword [0x73b4a8]
fstp dword [esp + 0x14]
mov edi, dword [esi + 8]
fld dword [eax + 0x490]
fstp dword [esp + 0x18]
cmp edi, ebx
je 0x40743b
push 0x3c
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.0057e0b0
fldz
fst dword [esp + 0x48]
add esp, 0xc
fst dword [esp + 0x40]
lea ecx, [esp + 0x3c]
fld dword [esi]
push ecx
fstp dword [esp + 0x48]
push edi
lea edx, [esp + 0x28]
push edx
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.005669e0
add esp, 0x1c
lea edi, [esp + 0xbc]
call fcn.00405560
fild dword [0x73b514]
mov dword [esp + 0x2c], 0xffffffff
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x694ccc]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x407561
fadd dword [0x694cd4]
fcompp
fnstsw ax
test ah, 1
jne 0x407565
fild dword [0x73b518]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [0x694cd0]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x407561
fadd dword [0x694cd8]
fcompp
fnstsw ax
test ah, 1
jne 0x407565
mov esi, dword [0x73b4c8]
mov edi, dword [esi + 8]
cmp edi, ebx
je 0x407550
push 0x3c
lea eax, [esp + 0x84]
push ebx
push eax
call fcn.0057e0b0
fldz
fst dword [esp + 0x88]
add esp, 0xc
fst dword [esp + 0x80]
lea ecx, [esp + 0x7c]
fld dword [esi]
push ecx
fstp dword [esp + 0x88]
push edi
lea edx, [esp + 0x34]
push edx
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 [0x668364]
fst dword [esp + 0xc]
fstp dword [esp + 8]
fstp dword [esp + 4]
fld dword [0x668360]
fstp dword [esp]
call fcn.005669e0
add esp, 0x1c
cmp dword [0x73b51c], ebx
je 0x407565
mov byte [0x698a18], 1
jmp 0x407565
fstp st(1)
fstp st(0)
mov ecx, dword [0x698a6c]
call fcn.0055f8f0
mov ecx, dword [0x698a6c]
push 1
call fcn.00560030
cmp byte [0x698a18], bl
jne 0x4075ce
mov eax, dword [0x73b494]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4075a5
mov ecx, dword [0x698a0c]
push 1
push ecx
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
push ebx
call dword [sym.imp.USER32.dll_ClipCursor]
cmp byte [0x73b48d], bl
jne 0x4075da
mov eax, dword [esp + 0x20eac]
cmp eax, ebx
je 0x407150
cmp eax, 1
je 0x407150
jmp 0x4075da
lea esi, [esp + 0xbc]
call fcn.0040be80
lea eax, [esp + 0xbc]
call fcn.0040bf00
mov eax, dword [0x73b490]
cmp eax, ebx
je 0x4075ff
mov ecx, dword [0x698a0c]
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
push ebx
push ecx
push eax
call edx
mov eax, dword [esp + 0x20eac]
sub eax, 1
je 0x407641
sub eax, 1
je 0x40762f
sub eax, 1
je 0x40764d
push ebx
push 0x600
push str..main.cpp
push 0x666f00
call fcn.0055a490
add esp, 0x10
jmp 0x40764d
lea eax, [esp + 0xbc]
push eax
call fcn.00406d10
add esp, 4
jmp 0x40764d
lea ecx, [esp + 0xbc]
call fcn.00406d70
mov eax, dword [0x73bd58]
cmp eax, ebx
je 0x40768a
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x407677
mov ecx, dword [0x73bd58]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [0x73bd58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x73bd58], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [esp + 0xbc]
push eax
mov dword [esp + 0x21d64], 0xffffffff
call fcn.00408d90
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.0057bd22
mov esp, ebp
pop ebp
ret