Function at 0x1001e560
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10172eb8]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 4], 0x103
mov byte [ebp - 0x219], 0
cmp dword [ebp + 8], 0
jne 0x1001e597
mov eax, 0x80043298
jmp 0x1001e7f0
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.100cac20
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.100cac20
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x104
lea eax, [ebp - 0x110]
push eax
call fcn.100cad54
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x218]
push edx
call fcn.100cad54
add esp, 0xc
mov eax, dword [0x10114184]
push eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call fcn.100cb017
add esp, 0xc
mov edx, dword [0x10114184]
push edx
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.100cb017
add esp, 0xc
mov ecx, dword [str..tit]
push ecx
push 0x104
lea edx, [ebp - 0x110]
push edx
call fcn.100cb017
add esp, 0xc
cmp dword [ebp + 0xc], 1
jne 0x1001e66c
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x1001e6a8
cmp dword [ebp + 0xc], 2
jne 0x1001e681
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1001e6a8
cmp dword [ebp + 0xc], 3
jne 0x1001e6a8
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [ebp - 0x224]
call sym.PfMgrApi.dll_protected:_bool___thiscall_CProfileDbController::IsDbOpened_void_
movzx ecx, al
test ecx, ecx
je 0x1001e6e9
mov ecx, dword [ebp - 0x224]
call sym.PfMgrApi.dll_public:_long_int___thiscall_CProfileDbController::Close_void_
mov byte [ebp - 0x219], 1
mov ecx, dword [ebp - 0x224]
call sym.PfMgrApi.dll_public:_long_int___thiscall_CProfileDbController::SpecialLock_void_
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0x43297
jne 0x1001e6cc
push 0x104
push 0
lea edx, [ebp - 0x110]
push edx
call fcn.100cac20
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.100cac20
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x110]
push edx
call fcn.100cad54
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.100cad54
add esp, 0xc
mov edx, dword [str..tit]
push edx
push 0x104
lea eax, [ebp - 0x110]
push eax
call fcn.100cb017
add esp, 0xc
cmp dword [ebp + 0xc], 1
jne 0x1001e789
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x1001e7c5
cmp dword [ebp + 0xc], 2
jne 0x1001e79e
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1001e7c5
cmp dword [ebp + 0xc], 3
jne 0x1001e7c5
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
movzx edx, byte [ebp - 0x219]
test edx, edx
je 0x1001e7eb
mov ecx, dword [ebp - 0x224]
call sym.PfMgrApi.dll_public:_long_int___thiscall_CProfileDbController::SpecialUnlock_void_
push 0xbb8
mov ecx, dword [ebp - 0x224]
call sym.PfMgrApi.dll_public:_long_int___thiscall_CITProfileDbController::Open_unsigned_long_int_
mov eax, 0x43297
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100ca7f5
mov esp, ebp
pop ebp
ret 8