Function at 0x1007cfb
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
push 0x298
mov eax, 0x102df56
call fcn.01026060
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0xc], ebx
mov dword [ebp - 0x278], edi
jne 0x1007d21
xor al, al
call fcn.010260f2
ret
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x270], ebx
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x284], ebx
lea eax, [ebp - 0x260]
lea esi, [edi + 8]
push eax
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x268], eax
mov byte [ebp - 0x261], 1
je 0x100810f
test byte [ebp - 0x260], 0x12
jne 0x10080dc
lea eax, [ebp - 0x234]
push eax
lea ecx, [edi + 4]
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
je 0x10080dc
mov esi, dword [sym.imp.MSVCR80.dll_wcsstr]
lea eax, [ebp - 0x234]
push str.SQLDIAG
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x1007ddc
lea eax, [ebp - 0x234]
push 0x10016c4
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x1007ddc
lea eax, [ebp - 0x234]
push 0x10016b0
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x10080dc
cmp byte [edi + 1], bl
jne 0x1007df9
lea eax, [ebp - 0x234]
push 0x10016a8
push eax
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10080dc
lea ecx, [ebp - 0x26c]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [ebp - 4], 1
push 0x100169c
push str.SQLDIAG
lea eax, [ebp - 0x26c]
push 0x1001690
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0x10
lea ecx, [ebp - 0x26c]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1007e5c
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x26c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x10080dc
lea eax, [ebp - 0x234]
push eax
mov ecx, 0x1038498
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call fcn.01007774
test al, al
pop ecx
pop ecx
je 0x1007e48
xor edi, edi
inc edi
push edi
push ebx
push ebx
push dword [ebp - 0x244]
call fcn.01026120
mov ecx, dword [ebp - 0x240]
xor esi, esi
add eax, ecx
adc edx, esi
add dword [ebp - 0x274], eax
adc dword [ebp - 0x270], edx
jne 0x1007eb1
cmp dword [ebp - 0x274], 0x7fffffff
jb 0x1007f00
mov ecx, dword [0x1038494]
mov eax, dword [ecx]
push edi
push edi
push ebx
push ebx
push 0x4000c404
call dword [eax]
mov esi, dword [ebp - 0x278]
push edi
mov ecx, esi
call fcn.01007a04
test al, al
je 0x1008211
push edi
push ebx
push ebx
push dword [ebp - 0x244]
call fcn.01026120
mov ecx, dword [ebp - 0x240]
xor esi, esi
add eax, ecx
adc edx, esi
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], edx
mov esi, dword [ebp - 0x278]
lea eax, [ebp - 0x234]
push eax
mov ecx, esi
call fcn.010077f8
test al, al
je 0x1008098
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x280], ebx
cmp byte [0x1038004], bl
lea eax, [ebp - 0x234]
push eax
je 0x1007fae
lea eax, [ebp - 0x290]
push 0x103849c
push eax
call fcn.01007c8d
mov esi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x29c]
push 0x1038498
push eax
call fcn.01007c8d
add esp, 0x18
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 4], 3
push edi
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
mov ecx, dword [ebp - 0x2a4]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x29c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x290]
jmp 0x1007fe1
lea eax, [ebp - 0x298]
push 0x1038498
push eax
call fcn.01007c8d
add esp, 0xc
mov byte [ebp - 4], 4
mov ecx, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x298]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
cmp esi, ebx
jne 0x100807b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x2a0]
push 0xc000c3cf
push eax
call fcn.0100ba1d
pop ecx
pop ecx
mov byte [ebp - 4], 5
push dword [ebp - 0x280]
lea ecx, [ebp - 0x234]
push ecx
mov ecx, eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a0]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [0x1038494]
mov esi, dword [eax]
push edi
push edi
push ebx
push ebx
lea ecx, [ebp - 0x27c]
add esi, 4
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
mov ecx, dword [0x1038494]
push eax
push 0xc000c3cf
call dword [esi]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x280], ebx
je 0x10080c7
inc dword [ebp - 0x28c]
cmp dword [ebp - 0x28c], 5
jb 0x1007f28
jmp 0x10080c7
mov al, byte [esi + 2]
push edi
push ebx
push ebx
push dword [ebp - 0x244]
mov byte [ebp - 0x261], al
call fcn.01026120
mov ecx, dword [ebp - 0x240]
xor esi, esi
add eax, ecx
adc edx, esi
sub dword [ebp - 0x274], eax
sbb dword [ebp - 0x270], edx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x26c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov edi, dword [ebp - 0x278]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1007d71
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x268], 0xffffffff
jmp 0x10081ac
cmp byte [edi + 2], bl
jne 0x10081b1
lea ecx, [ebp - 0x288]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [ebp - 4], 6
mov edi, 0xc000c3d0
lea eax, [ebp - 0x294]
push edi
push eax
call fcn.0100ba1d
pop ecx
pop ecx
mov byte [ebp - 4], 7
push dword [0x1038498]
mov ecx, eax
push dword [esi]
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x294]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [0x1038494]
mov esi, dword [eax]
push 1
push 1
push ebx
push ebx
lea ecx, [ebp - 0x288]
add esi, 4
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
mov ecx, dword [0x1038494]
push eax
push edi
call dword [esi]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x288]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov edi, dword [ebp - 0x278]
cmp byte [edi + 2], bl
je 0x10081d7
cmp byte [edi], bl
jne 0x10081df
xor esi, esi
xor eax, eax
cmp esi, 0x1e
jae 0x10081d7
cmp eax, 0xc0
je 0x10081d7
push 1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SleepEx]
inc esi
cmp byte [edi], bl
je 0x10081b9
cmp byte [edi], bl
je 0x1007d42
mov eax, dword [ebp - 0x284]
inc dword [ebp - 0x284]
cmp eax, 1
jb 0x1007d42
cmp dword [ebp - 0x268], 0xffffffff
je 0x1008209
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [ebp - 0x261]
jmp 0x100822f
push dword [ebp - 0x268]
mov byte [esi], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x26c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x27c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov al, bl
jmp 0x1007d1b