Function at 0x4070f0
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4da8de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x820
push ebx
push ebp
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
mov ecx, 0x534950
push eax
call fcn.0042a800
push str.CDDB_Batch.txt
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x840], 0
call fcn.004b28eb
mov eax, dword [eax]
push 0x516a08
push eax
call fcn.0048e917
add esp, 8
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004b2656
or ebp, 0xffffffff
lea ecx, [esp + 0xc]
mov dword [esp + 0x834], ebp
call fcn.004b2656
test ebx, ebx
jne 0x407186
xor eax, eax
jmp 0x407427
lea edx, [esp + 0x14]
mov ecx, 0x534950
push edx
call fcn.0042a800
push str.CDDB_Batch.txt
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x83c], 1
push eax
call fcn.004b28eb
push str..tmp
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x840], 2
call fcn.004b28eb
mov eax, dword [eax]
push 0x5169fc
push eax
call fcn.0048e917
add esp, 8
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.004b2656
lea ecx, [esp + 0x10]
mov byte [esp + 0x834], 1
call fcn.004b2656
lea ecx, [esp + 0x14]
mov dword [esp + 0x834], ebp
call fcn.004b2656
test edi, edi
jne 0x40720f
xor eax, eax
jmp 0x407427
push esi
push ebx
lea edx, [esp + 0x34]
push 0x800
push edx
call fcn.0048ecb3
add esp, 0xc
test eax, eax
je 0x40728a
mov eax, dword [esp + 0x840]
lea esi, [esp + 0x30]
mov eax, dword [eax]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x407258
test cl, cl
je 0x407254
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x407258
add eax, 2
add esi, 2
test cl, cl
jne 0x407234
xor eax, eax
jmp 0x40725c
sbb eax, eax
sbb eax, ebp
test eax, eax
je 0x407273
lea eax, [esp + 0x30]
push eax
push 0x5169e4
push edi
call fcn.0048e66e
add esp, 0xc
push ebx
lea ecx, [esp + 0x34]
push 0x800
push ecx
call fcn.0048ecb3
add esp, 0xc
test eax, eax
jne 0x407227
push ebx
call fcn.0048e374
push edi
call fcn.0048e374
add esp, 8
lea edx, [esp + 0x10]
mov ecx, 0x534950
push edx
call fcn.0042a800
push str.CDDB_Batch.txt
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x840], 3
push eax
call fcn.004b28eb
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
lea ecx, [esp + 0x18]
call fcn.004b2656
lea ecx, [esp + 0x10]
mov dword [esp + 0x838], ebp
call fcn.004b2656
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x534950
call fcn.0042a800
push str.CDDB_Batch.txt
lea edx, [esp + 0x28]
push eax
push edx
mov dword [esp + 0x844], 4
call fcn.004b28eb
mov edi, dword [eax]
lea eax, [esp + 0x14]
push eax
mov ecx, 0x534950
mov byte [esp + 0x83c], 5
call fcn.0042a800
push str.CDDB_Batch.txt
lea ecx, [esp + 0x14]
mov bl, 6
push eax
push ecx
mov byte [esp + 0x844], bl
call fcn.004b28eb
push str..tmp
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x844], 7
call fcn.004b28eb
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0x18]
call fcn.004b2656
lea ecx, [esp + 0x10]
mov byte [esp + 0x838], bl
call fcn.004b2656
lea ecx, [esp + 0x14]
mov byte [esp + 0x838], 5
call fcn.004b2656
lea ecx, [esp + 0x24]
mov byte [esp + 0x838], 4
call fcn.004b2656
lea ecx, [esp + 0x1c]
mov dword [esp + 0x838], ebp
call fcn.004b2656
lea eax, [esp + 0x28]
mov ecx, 0x534950
push eax
call fcn.0042a800
push str.CDDB_Batch.txt
lea ecx, [esp + 0x24]
mov ebx, 8
push eax
push ecx
mov dword [esp + 0x844], ebx
call fcn.004b28eb
push str..tmp
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x844], 9
call fcn.004b28eb
mov eax, dword [eax]
push eax
call esi
lea ecx, [esp + 0x2c]
call fcn.004b2656
lea ecx, [esp + 0x20]
mov byte [esp + 0x838], bl
call fcn.004b2656
lea ecx, [esp + 0x28]
mov dword [esp + 0x838], ebp
call fcn.004b2656
mov eax, 1
pop esi
mov ecx, dword [esp + 0x82c]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x82c
ret 4