Function at 0x4273b0
Capabilities:
Check if file exists
Check mutex on windows
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534385
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push str.kometaup_check
push ebx
mov edi, ecx
push ebx
mov dword [ebp - 0x12c], edi
mov byte [ebp - 0x130], bl
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x134], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x427ed9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x427421
cmp eax, 0x80
jne 0x427473
mov byte [ebp - 0x130], 1
cmp edi, ebx
je 0x427440
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x427440
test al, 0x10
je 0x4274e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x580
lea eax, [ebp - 0x1f0]
push eax
mov ebx, str.env.cpp
call fcn.0041a6b0
mov esi, eax
mov byte [ebp - 4], 1
test esi, esi
je 0x4274bd
lea ebx, [esi + 0x10]
test ebx, ebx
je 0x42747f
lea eax, [esi + 0x20]
jmp 0x427481
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x427ed9
xor eax, eax
push str.ERROR:
push eax
call fcn.00407c44
add esp, 8
test ebx, ebx
je 0x427498
lea eax, [esi + 0x20]
jmp 0x42749a
xor eax, eax
push str.failed_to_found_zip_file:
push eax
call fcn.00407c44
add esp, 8
test ebx, ebx
je 0x4274b1
lea eax, [esi + 0x20]
jmp 0x4274b3
xor eax, eax
push edi
push eax
call fcn.00407c44
add esp, 8
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0
call fcn.0041a760
mov esi, dword [ebp - 0x134]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x427edb
lea esi, [ebp - 0x64]
call fcn.004251c0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x54], ebx
jne 0x427592
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x588
lea ecx, [ebp - 0x1f0]
push ecx
mov ebx, str.env.cpp
call fcn.0041a6b0
mov esi, eax
mov byte [ebp - 4], 3
test esi, esi
je 0x427558
lea ebx, [esi + 0x10]
test ebx, ebx
je 0x42752f
lea eax, [esi + 0x20]
jmp 0x427531
xor eax, eax
push str.ERROR:
push eax
call fcn.00407c44
add esp, 8
test ebx, ebx
je 0x427548
lea eax, [esi + 0x20]
jmp 0x42754a
xor eax, eax
push str.failed_to_get_appdatalocal
push eax
call fcn.00407c44
add esp, 8
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 2
call fcn.0041a760
cmp dword [ebp - 0x50], 8
jb 0x427579
mov edx, dword [ebp - 0x64]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
jmp 0x4274cc
xor ecx, ecx
push 6
mov word [ebp - 0xb8], cx
push 0x53ff8c
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], ebx
call fcn.00404bd5
lea ebx, [ebp - 0xb8]
lea ecx, [ebp - 0x64]
lea edi, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.00424f20
mov esi, 8
mov byte [ebp - 4], 6
cmp dword [ebp - 0xa4], esi
jb 0x4275f2
mov edx, dword [ebp - 0xb8]
push edx
call fcn.004f77ab
add esp, 4
xor ecx, ecx
xor eax, eax
push 0xc
mov ebx, 7
mov word [ebp - 0xb8], cx
xor edx, edx
push str.kometaup.exe
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xe0], eax
mov word [ebp - 0xf0], dx
call fcn.00404bd5
mov byte [ebp - 4], bl
lea ebx, [ebp - 0xf0]
lea ecx, [ebp - 0x80]
lea edi, [ebp - 0x2c]
call fcn.00424f20
mov byte [ebp - 4], 9
cmp dword [ebp - 0xdc], esi
jb 0x427664
mov eax, dword [ebp - 0xf0]
push eax
call fcn.004f77ab
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xe0], ebx
mov word [ebp - 0xf0], cx
cmp dword [ebp - 0x18], esi
jb 0x427798
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x4276a4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4276a4
test al, 0x10
je 0x427de2
cmp dword [ebp - 0x6c], esi
jb 0x4277a0
mov eax, dword [ebp - 0x80]
cmp eax, ebx
je 0x4276c7
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4276c4
test al, 0x10
jne 0x4276d6
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], esi
jae 0x4276cf
lea eax, [ebp - 0x80]
mov ecx, eax
call fcn.00425220
mov edi, dword [ebp - 0x12c]
lea esi, [ebp - 0xb8]
call fcn.00425e60
lea edi, [ebp - 0xd4]
mov byte [ebp - 4], 0xa
call fcn.00425b70
mov ebx, 8
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], ebx
jb 0x427706
mov eax, dword [eax]
mov edi, eax
lea esi, [ebp - 0x48]
call fcn.00425e60
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xc0], ebx
jb 0x42772b
mov edx, dword [ebp - 0xd4]
push edx
call fcn.004f77ab
add esp, 4
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xf8], eax
push 0xc
mov dword [ebp - 0xc4], ecx
xor edx, edx
mov dword [ebp - 0xfc], ecx
xor eax, eax
push str.kometaup.exe
lea ecx, [ebp - 0x10c]
mov word [ebp - 0xd4], dx
mov word [ebp - 0x10c], ax
call fcn.00404bd5
lea ebx, [ebp - 0x10c]
lea ecx, [ebp - 0x48]
lea edi, [ebp - 0x128]
mov byte [ebp - 4], 0xe
call fcn.00424f20
mov edi, 8
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], edi
jb 0x4277a8
mov edx, dword [eax]
jmp 0x4277aa
lea eax, [ebp - 0x2c]
jmp 0x427690
lea eax, [ebp - 0x80]
jmp 0x4276b4
mov edx, eax
xor esi, esi
xor ecx, ecx
mov eax, edx
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], esi
mov word [ebp - 0x9c], cx
lea ebx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4277d0
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x9c]
call fcn.00404bd5
cmp dword [ebp - 0x114], edi
jb 0x427803
mov edx, dword [ebp - 0x128]
push edx
call fcn.004f77ab
add esp, 4
mov ebx, 7
xor eax, eax
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x118], esi
mov word [ebp - 0x128], ax
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0xf8], edi
jb 0x427838
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
push edi
push str.8n4Nm184
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xfc], esi
mov word [ebp - 0x10c], dx
mov dword [ebp - 0xc0], 0xf
mov dword [ebp - 0xc4], esi
mov byte [ebp - 0xd4], dl
call fcn.004042dc
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0x13
call fcn.00436590
add esp, 8
test al, al
sete bl
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0xc0], 0x10
jb 0x4278b2
mov edx, dword [ebp - 0xd4]
push edx
call fcn.004f77ab
add esp, 4
test bl, bl
je 0x427a03
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x4278c5
lea ecx, [ebp - 0x48]
call fcn.004254d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x59e
lea eax, [ebp - 0x1f0]
push eax
mov ebx, str.env.cpp
call fcn.0041a6b0
push str.failed_to_unpack
push ecx
mov esi, eax
mov byte [ebp - 4], 0x14
call fcn.00405fba
add esp, 4
mov esi, eax
call fcn.00406075
lea ecx, [ebp - 0x12c]
mov esi, eax
call fcn.00405fde
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x12
call fcn.0041a760
cmp dword [ebp - 0x88], edi
jb 0x427935
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004f77ab
add esp, 4
xor ebx, ebx
xor edx, edx
mov esi, 7
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
cmp dword [ebp - 0x34], edi
jb 0x427962
mov eax, dword [ebp - 0x48]
push eax
call fcn.004f77ab
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0xa4], edi
jb 0x427985
mov edx, dword [ebp - 0xb8]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], ax
cmp dword [ebp - 0x18], edi
jb 0x4279ab
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x6c], edi
jb 0x4279c8
mov eax, dword [ebp - 0x80]
push eax
call fcn.004f77ab
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
cmp dword [ebp - 0x50], edi
jb 0x4279e5
mov edx, dword [ebp - 0x64]
push edx
call fcn.004f77ab
add esp, 4
mov dword [ebp - 0x50], esi
xor eax, eax
lea esi, [ebp - 0x134]
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
call fcn.0040b030
xor al, al
jmp 0x427edb
mov eax, dword [ebp - 0x9c]
cmp dword [ebp - 0x88], edi
jae 0x427a17
lea eax, [ebp - 0x9c]
call fcn.00424f00
test al, al
jne 0x427b64
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x427a2f
lea ecx, [ebp - 0x48]
call fcn.004254d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5a5
lea ecx, [ebp - 0x1f0]
push ecx
mov ebx, str.env.cpp
call fcn.0041a6b0
mov esi, eax
mov byte [ebp - 4], 0x15
call fcn.00405fba
mov esi, eax
call fcn.00428a10
lea ecx, [ebp - 0x12c]
mov esi, eax
call fcn.00405fde
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x12
call fcn.0041a760
cmp dword [ebp - 0x88], edi
jb 0x427a96
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004f77ab
add esp, 4
xor ebx, ebx
xor eax, eax
mov esi, 7
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
cmp dword [ebp - 0x34], edi
jb 0x427ac3
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0xa4], edi
jb 0x427ae6
mov eax, dword [ebp - 0xb8]
push eax
call fcn.004f77ab
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], cx
cmp dword [ebp - 0x18], edi
jb 0x427b0c
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x6c], edi
jb 0x427b29
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
cmp dword [ebp - 0x50], edi
jb 0x427b46
mov eax, dword [ebp - 0x64]
push eax
call fcn.004f77ab
add esp, 4
mov dword [ebp - 0x50], esi
xor ecx, ecx
lea esi, [ebp - 0x134]
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
call fcn.0040b030
xor al, al
jmp 0x427edb
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x427b6f
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x9c]
cmp dword [ebp - 0x88], edi
jae 0x427b83
lea eax, [ebp - 0x9c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x427b96
lea ecx, [ebp - 0x48]
call fcn.004254d0
test al, al
jne 0x427c0e
cmp dword [ebp - 0x34], edi
jb 0x427baf
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x12c], edx
jmp 0x427bb8
lea eax, [ebp - 0x48]
mov dword [ebp - 0x12c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5ad
lea ecx, [ebp - 0x1f0]
push ecx
mov ebx, str.env.cpp
call fcn.0041a6b0
push str.failed_to_delete_temp_folder
push ecx
mov esi, eax
mov byte [ebp - 4], 0x16
call fcn.00405fba
add esp, 4
mov esi, eax
call fcn.00406075
lea ecx, [ebp - 0x12c]
mov esi, eax
call fcn.00405fde
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x12
call fcn.0041a760
xor esi, esi
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x427c19
lea eax, [ebp - 0x2c]
call fcn.00424f00
test al, al
jne 0x427d6f
cmp dword [ebp - 0x18], edi
jb 0x427c36
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x12c], edx
jmp 0x427c3f
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x12c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5b2
lea ecx, [ebp - 0x1f0]
push ecx
mov ebx, str.env.cpp
call fcn.0041a6b0
mov esi, eax
mov byte [ebp - 4], 0x17
call fcn.00405fba
mov esi, eax
call fcn.00428a50
lea ecx, [ebp - 0x12c]
mov esi, eax
call fcn.00405fde
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x12
call fcn.0041a760
cmp dword [ebp - 0x88], edi
jb 0x427ca1
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004f77ab
add esp, 4
xor ebx, ebx
xor eax, eax
mov esi, 7
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
cmp dword [ebp - 0x34], edi
jb 0x427cce
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0xa4], edi
jb 0x427cf1
mov eax, dword [ebp - 0xb8]
push eax
call fcn.004f77ab
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], cx
cmp dword [ebp - 0x18], edi
jb 0x427d17
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x6c], edi
jb 0x427d34
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
cmp dword [ebp - 0x50], edi
jb 0x427d51
mov eax, dword [ebp - 0x64]
push eax
call fcn.004f77ab
add esp, 4
mov dword [ebp - 0x50], esi
xor ecx, ecx
lea esi, [ebp - 0x134]
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
call fcn.0040b030
xor al, al
jmp 0x427edb
cmp dword [ebp - 0x88], edi
jb 0x427d86
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
mov ebx, 7
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], esi
mov word [ebp - 0x9c], ax
cmp dword [ebp - 0x34], edi
jb 0x427db1
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
mov byte [ebp - 4], 9
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], dx
cmp dword [ebp - 0xa4], edi
jb 0x427dd8
mov eax, dword [ebp - 0xb8]
push eax
call fcn.004f77ab
add esp, 4
mov edi, 7
xor ebx, ebx
lea esi, [edi + 1]
push str.kometaup.exe
call fcn.004268a0
add esp, 4
test al, al
jne 0x427e77
cmp dword [ebp - 0x18], esi
jb 0x427e72
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
je 0x427e0f
call fcn.00426640
test al, al
jne 0x427e77
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jb 0x427e1d
push ecx
call fcn.004f77ab
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x6c], esi
jb 0x427e3a
mov edx, dword [ebp - 0x80]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
cmp dword [ebp - 0x50], esi
jb 0x427e57
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
lea esi, [ebp - 0x134]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
call fcn.0040b030
xor al, al
jmp 0x427edb
lea ecx, [ebp - 0x2c]
jmp 0x427e03
cmp dword [ebp - 0x18], esi
jb 0x427e88
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004f77ab
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x6c], esi
jb 0x427ea5
mov edx, dword [ebp - 0x80]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
cmp dword [ebp - 0x50], esi
jb 0x427ec2
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
lea esi, [ebp - 0x134]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
call fcn.0040b030
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret