Function at 0x1001d000
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100888d8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100ac06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.10011610
test al, al
je 0x1001d056
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001d1e5
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.10011c00
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.1001dc40
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x1001d09e
mov ecx, dword [eax]
jmp 0x1001d0a0
mov ecx, eax
mov eax, dword [eax + 0x10]
lea edx, [ebp - 0x60]
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x58]
push 0
mov dword [ebp - 0x5c], eax
call fcn.10012420
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x1001d0d2
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.1000c330
sub esp, 8
mov dword [ebp - 0x2c], 0xf
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
mov ecx, esp
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x58]
mov byte [ebp - 0x40], 0
mov dword [ecx], eax
mov eax, dword [ebp - 0x48]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.10013120
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
cmp ecx, eax
je 0x1001d11d
push 0xffffffffffffffff
push 0
push eax
call fcn.1000bb10
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x1001d136
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.1000c440
xor eax, eax
mov dword [ebp - 0x2c], 7
lea ecx, [ebp + 8]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.10013450
test al, al
jne 0x1001d16d
lea ecx, [ebp - 0x28]
call fcn.10013450
test al, al
jne 0x1001d16d
lea edx, [ebp - 0x28]
lea ecx, [ebp + 8]
call fcn.100120a0
cmp dword [ebp - 0x18], 0x104
jae 0x1001d18c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 5
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x1001d1a5
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.1000c440
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x1001d1d1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.1000c440
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x1001d201
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.1000c440
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100205ba
mov esp, ebp
pop ebp
ret 0x18