Function at 0x4457d0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
test eax, eax
je 0x4458fd
xor ebx, ebx
cmp dword [eax], eax
je 0x445ab3
test byte [eax + 0x18], 4
je 0x445ab3
mov eax, dword [eax + 0x1c]
test eax, eax
mov edi, str._etc_blkid.tab
cmovne edi, eax
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat32i64]
add esp, 8
mov esi, eax
test eax, eax
js 0x445907
xor ebx, ebx
test esi, esi
jne 0x445918
push 2
push edi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__access
add esp, 8
test eax, eax
js 0x445abd
movzx eax, word [esp + 0x26]
and eax, 0xf000
xor ebx, ebx
cmp eax, 0x8000
jne 0x445918
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add eax, 8
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x445918
push 0x12
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__umask
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], edi
push edi
push str._s_XXXXXX
mov ebx, dword [esp + 0x18]
push ebx
call fcn.00445ae0
add esp, 0xc
push ebx
call fcn.0045ab70
add esp, 4
mov edi, eax
movzx eax, word [esp + 0x18]
push eax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__umask
add esp, 4
test edi, edi
js 0x445ac1
push 0x4a77ea
push edi
call sub.api_ms_win_crt_math_l1_1_0.dll__fdopen
add esp, 8
mov edi, eax
push 0x1a4
push ebx
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__chmod
add esp, 8
mov dword [esp + 0x14], edi
test edi, edi
mov edi, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
jne 0x445939
jmp 0x445918
mov ebx, 0xffffffea
jmp 0x445ab3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor ebx, ebx
cmp dword [eax], 2
jne 0x445ab3
push 0x4a77ea
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x445a7f
mov dword [esp + 0x10], edi
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], edi
mov edi, dword [ecx]
cmp edi, ecx
mov dword [esp + 0x1c], ebx
jne 0x445a0a
test esi, esi
js 0x445a89
and byte [ecx + 0x18], 0xfb
push dword [esp + 0x14]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
mov esi, 1
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x10], edi
je 0x445aa8
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add eax, 5
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
test eax, eax
je 0x4459bc
mov ebx, eax
push edi
push str._s.old
push eax
call fcn.00445ae0
add esp, 0xc
push ebx
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__unlink
add esp, 4
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
push edi
mov edi, dword [esp + 0x14]
push edi
call sub.api_ms_win_crt_filesystem_l1_1_0.dll_rename
add esp, 8
test eax, eax
mov ebx, dword [esp + 0x1c]
jns 0x445aa8
push edi
jmp 0x445aa0
mov eax, dword [esp + 0x18]
push dword [eax + 0x14]
push str.__s__device__n
push edi
mov edi, eax
call fcn.00445b00
add esp, 0xc
xor esi, esi
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
mov edi, dword [edi]
cmp edi, ecx
je 0x44594b
cmp dword [edi + 0x18], 0
je 0x445a00
mov eax, dword [edi + 0x14]
xor esi, esi
cmp byte [eax], 0x2f
jne 0x445a00
push dword [edi + 0x24]
push dword [edi + 0x20]
push str._device_DEVNO_0x_04lx__TIME__ld_
mov esi, edi
mov edi, dword [esp + 0x20]
push edi
call fcn.00445b00
add esp, 0x10
mov dword [esp + 0x18], esi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x445a4e
push eax
push str._PRI__d_
push edi
call fcn.00445b00
add esp, 0xc
mov eax, dword [esp + 0x18]
lea esi, [eax + 8]
mov ebx, dword [eax + 8]
cmp ebx, esi
je 0x4459e0
nop dword [eax]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push str.__s__s_
push edi
call fcn.00445b00
add esp, 0x10
mov ebx, dword [ebx]
cmp ebx, esi
jne 0x445a60
jmp 0x4459e0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [eax]
jmp 0x445aa8
push dword [esp + 0x14]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0xc]
je 0x445aa8
push eax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__unlink
add esp, 4
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov ebx, esi
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x445ab3
push 0x1a4
push ebx
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__chmod
add esp, 8
mov edi, dword [esp + 0xc]
jmp 0x445918