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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101671fc
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x10438fc0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
mov eax, dword [esi + 0x48]
xor edi, edi
cmp eax, edi
je 0x100a1afa
cmp dword [eax + 4], 0xffffffff
setne al
test al, al
je 0x100a1afa
mov eax, dword [esi + 4]
cmp eax, dword [ebp + 8]
jne 0x100a1af2
mov cl, byte [esi + 8]
cmp cl, byte [ebp + 0xc]
jne 0x100a1af2
mov ebx, esi
call fcn.100a2960
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
mov ecx, esi
call fcn.100a28a0
mov edx, dword [ebp + 8]
mov al, byte [ebp + 0xc]
push 0x10
mov dword [esi + 4], edx
mov byte [esi + 8], al
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x50], edi
cmp ebx, edi
je 0x100a1b3c
mov edi, dword [esi]
push 0
call fcn.100164f0
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 8], 0
mov byte [ebx + 0xc], 0
mov edi, ebx
mov ebx, 1
mov dword [esp + 0x50], 0xffffffff
mov dword [esi + 0x48], edi
mov dword [esp + 0x14], SysReAllocStringLen
cmp dword [ebp + 8], ebx
jne 0x100a1b61
mov dword [esp + 0x14], 0xc0000000
cmp byte [ebp + 0xc], 0
je 0x100a1b6c
mov ebx, 3
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x100a1b82
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0xffffffff
cmp byte [edi + 0xc], 0
je 0x100a1b91
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
push 0
push 0
push 3
push 0
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x100a1beb
call fcn.10023ad0
mov dword [edi + 8], eax
mov eax, dword [esi + 0x48]
mov edx, dword [eax + 8]
mov dword [esi + 0x54], edx
test eax, eax
je 0x100a1bcd
mov esi, eax
call fcn.1002e860
mov esi, dword [esp + 0x1c]
mov dword [esi + 0x48], 0
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 4], eax
mov byte [edi + 0xc], 0
mov dword [edi + 8], 0
mov edi, esi
call fcn.100a2d80
test al, al
je 0x100a1bd4
movzx eax, byte [esi + 8]
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 0x50]
push eax
push ecx
call fcn.100a42a0
test al, al
jne 0x100a1c39
mov edx, dword [esi + 0x50]
mov eax, dword [edx + 0x30]
mov dword [esi + 0x54], eax
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, 1
cmp dword [ebp + 8], ebx
jne 0x100a1eac
cmp byte [esi + 0x4d], 0
je 0x100a1c94
cmp dword [esi + 0x6c], 0
jne 0x100a1c8a
push 0x160
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x50], ebx
test eax, eax
je 0x100a1c7d
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi]
push ecx
push edx
mov edi, eax
call fcn.100a5260
jmp 0x100a1c7f
xor eax, eax
mov dword [esp + 0x50], 0xffffffff
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x6c]
mov ecx, ebx
call fcn.100a52a0
lea ecx, [esi + 0x10]
mov ebx, 2
mov dword [esp + 0x20], ecx
cmp dword [ecx], ebx
jne 0x100a1eac
mov dword [ecx], 3
push esi
lea ecx, [esp + 0x18]
call fcn.10017430
push 0
mov edi, str.freelist
lea eax, [esp + 0x14]
mov dword [esp + 0x54], ebx
call fcn.100164f0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x14]
mov byte [esp + 0x50], 3
call fcn.100178e0
lea eax, [esp + 0x10]
mov byte [esp + 0x50], bl
call fcn.100164d0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100a1ea3
mov edx, esi
push edx
lea ecx, [esp + 0x14]
call fcn.10017430
push 0
mov edi, str.oldfreelist
lea eax, [esp + 0x1c]
mov byte [esp + 0x54], 4
call fcn.100164f0
lea ecx, [esp + 0x18]
lea esi, [esp + 0x10]
mov byte [esp + 0x50], 5
call fcn.100178e0
lea eax, [esp + 0x18]
mov byte [esp + 0x50], 4
call fcn.100164d0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, dword [esp + 0x1c]
cmp dword [ebx + 0x6c], 0
jne 0x100a1d8f
push 0x160
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x50], 6
test eax, eax
je 0x100a1d85
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx]
push ecx
push edx
mov edi, eax
call fcn.100a5260
jmp 0x100a1d87
xor eax, eax
mov byte [esp + 0x50], 4
mov dword [ebx + 0x6c], eax
mov edi, dword [esp + 0x10]
lea esi, [esp + 0x24]
call fcn.100232e0
mov byte [esp + 0x50], 7
mov edi, dword [esp + 0x28]
cmp edi, 0xffffffff
je 0x100a1db8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
mov dword [esp + 0x28], edi
cmp byte [esp + 0x30], 0
mov esi, dword [esp + 0x24]
je 0x100a1dca
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x100a1df2
call fcn.10023ad0
mov dword [esp + 0x2c], eax
xor eax, eax
jmp 0x100a1e03
mov edi, eax
xor eax, eax
mov dword [esp + 0x28], edi
mov byte [esp + 0x30], 0
mov dword [esp + 0x2c], eax
cmp edi, 0xffffffff
je 0x100a1e79
mov edi, 0x10
push edi
lea ecx, [esp + 0x20]
lea edx, [esp + 0x38]
lea esi, [esp + 0x28]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.100235b0
test al, al
je 0x100a1e65
cmp dword [esp + 0x1c], edi
jne 0x100a1e65
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebx + 0x6c]
push edx
mov edx, dword [esp + 0x38]
push eax
call fcn.100a53e0
push edi
lea ecx, [esp + 0x20]
lea edx, [esp + 0x38]
lea esi, [esp + 0x28]
call fcn.100235b0
test al, al
jne 0x100a1e33
lea esi, [esp + 0x24]
call fcn.100233d0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x20]
sub esp, 0x28
mov edi, esp
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 0x48]
call fcn.100a2ef0
lea eax, [esp + 0x24]
call fcn.10023300
lea eax, [esp + 0x10]
call fcn.100164d0
lea eax, [esp + 0x14]
call fcn.100164d0
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8