Function at 0x1000653e
Capabilities:
Delete file

Disassembly:
push ebp
sub esp, 0x62c
lea ebp, [esp - 4]
mov eax, dword [0x10071ef0]
xor eax, ebp
mov dword [ebp + 0x62c], eax
push 0x24
mov eax, 0x1003feea
call fcn.1003e7e6
mov ecx, dword [ebp + 0x638]
mov eax, 0x104
push eax
lea edx, [ebp]
push edx
push eax
lea edx, [ebp + 0x410]
push edx
push eax
lea eax, [ebp + 0x208]
push eax
push 0xa
lea eax, [ebp + 0x618]
push eax
push ecx
mov dword [ebp - 0x30], ecx
call dword [sym.imp.MSVCR80.dll__wsplitpath_s]
add esp, 0x24
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.10002f76
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10006228
push str..mds
lea ecx, [ebp - 0x10]
call fcn.10004d01
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jne 0x1000679f
mov edi, dword [sym.imp.MSVCR80.dll_wcslen]
lea eax, [ebp + 0x618]
push eax
call edi
test eax, eax
pop ecx
je 0x1000679f
lea eax, [ebp + 0x410]
push eax
call edi
test eax, eax
pop ecx
je 0x1000679f
lea eax, [ebp + 0x618]
push eax
lea ecx, [ebp - 0x14]
call fcn.10002f76
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.10006250
lea eax, [ebp + 0x410]
push eax
lea ecx, [ebp - 0x14]
call fcn.10006250
mov edi, str..mdf
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10004f0e
add esp, 0xc
push dword [eax]
call esi
mov ecx, dword [ebp - 0x18]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.1000167f
test bl, bl
je 0x100066a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x10006667
cmp eax, 0x20
jne 0x100066a2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.1000167f
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.1000167f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x62c]
xor ecx, ebp
call fcn.1003e70b
add ebp, 0x630
leave
ret
and dword [ebp - 0x18], 0
push 0x10082c6c
lea ecx, [ebp - 0x1c]
call fcn.10001b68
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push 0x10045918
push eax
mov byte [ebp - 4], 2
call fcn.10006276
add esp, 0xc
push edi
lea ecx, [ebp - 0x20]
call fcn.10002f76
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx - 0xc]
push 4
pop ecx
sub ecx, edx
push ecx
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.10004dc5
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 4
call fcn.10004eb7
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.10002dea
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.1000167f
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.1000167f
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.1000167f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10004eb7
add esp, 0xc
push dword [eax]
call esi
mov ecx, dword [ebp - 0x28]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.1000167f
test bl, bl
je 0x10006775
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x100067cc
cmp eax, 0x20
je 0x100067cc
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.1000167f
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x3e8
jl 0x100066a6
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.1000167f
push dword [ebp - 0x30]
call esi
test eax, eax
jne 0x100067dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x100067b8
cmp eax, 0x20
jne 0x100067dc
xor esi, esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.1000167f
mov eax, esi
jmp 0x1000667f
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.1000167f
jmp 0x10006667
xor esi, esi
inc esi
jmp 0x100067ba