Function at 0x7ef205
Capabilities:
Delete file
Get file size
Move file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x90770c]
push ebx
push esi
lea ecx, [ebp - 0x328]
push edi
mov dword [ebp - 8], 0xfbea
mov byte [ebp - 1], 0
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x7ef229
mov eax, dword [ebp + 8]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x7ef238
lea edi, [ebp - 0x328]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x7ef248
push dword [ebp + 0xc]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x328]
and ecx, 3
push 1
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.007ece42
add esp, 0xc
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x7ef280
xor al, al
jmp 0x7ef63c
push dword [ebp + 0xc]
push eax
call fcn.007ecef7
push dword [0x907708]
mov esi, eax
call fcn.007edd60
mov edi, eax
mov eax, dword [0x9bb174]
xor ecx, ecx
add esp, 0xc
cmp eax, ecx
mov ebx, edx
je 0x7ef2b3
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x14], eax
jmp 0x7ef2b6
mov dword [ebp - 0x14], ecx
mov eax, esi
cdq
mov esi, eax
add esi, ecx
mov ecx, edx
adc ecx, dword [ebp - 0x14]
cmp ecx, dword [0x907714]
jg 0x7ef62c
jl 0x7ef2dc
cmp esi, dword [0x907710]
jae 0x7ef62c
sub edi, eax
sbb ebx, edx
cmp ebx, dword [0x90771c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
jl 0x7ef62c
jg 0x7ef300
cmp edi, dword [0x907718]
jbe 0x7ef62c
mov eax, dword [0x907708]
lea edx, [ebp - 0x224]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x7ef30d
mov eax, dword [ebp + 8]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x7ef31c
lea edi, [ebp - 0x224]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x7ef32c
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x224]
rep movsb byte es:[edi], byte [esi]
call fcn.007eed65
mov eax, dword [0x907708]
lea ecx, [ebp - 0x120]
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x7ef35c
mov eax, dword [str.C_TMP00_.DAT]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x7ef36d
lea edi, [ebp - 0x120]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x7ef37d
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x9bb174]
and ecx, 3
xor ebx, ebx
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x7ef4e8
add eax, 0x1c
cmp byte [eax], bl
je 0x7ef4e8
mov edi, dword [ebp + 8]
mov esi, eax
mov cl, byte [esi]
mov al, cl
cmp cl, byte [edi]
jne 0x7ef3d4
test al, al
je 0x7ef3d0
mov cl, byte [esi + 1]
mov al, cl
cmp cl, byte [edi + 1]
jne 0x7ef3d4
inc esi
inc esi
inc edi
inc edi
test al, al
jne 0x7ef3b2
xor eax, eax
jmp 0x7ef3d9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x7ef4e8
push ebx
push 0x100
push 3
push ebx
push ebx
push DirectSoundCreate
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x7ef4d0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x9bb174]
cmp dword [ecx + 0x18], eax
jne 0x7ef4c6
mov edi, dword [0x907700]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.007c94b0
mov dword [ebp - 0xc], esp
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x7ef460
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
call fcn.007f1042
add esp, 0xc
push ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push dword [0x907700]
push dword [ebp - 0xc]
push esi
call edi
mov eax, dword [0x907700]
cmp dword [ebp - 0x10], eax
je 0x7ef443
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x9bb174]
mov cx, word [ebp - 8]
or esi, 0xffffffff
cmp word [eax + 0x120], cx
jne 0x7ef4bd
push ebx
push 0x100
push 3
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov esi, eax
mov eax, dword [0x9bb174]
push ebx
push dword [eax + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x7ef4d0
mov dword [ebp - 8], 0xfbea
jmp 0x7ef4d5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov eax, dword [0x9bb174]
cmp esi, 0xffffffff
mov word [eax + 0x120], bx
mov byte [eax + 0x1c], 0
mov dword [eax + 0x18], ebx
jne 0x7ef514
push ebx
push 0x100
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x7ef627
mov eax, dword [0x9bb174]
cmp eax, ebx
je 0x7ef53c
push 0x7ef0ef
push 0x105
push dword [eax + 0xc]
add eax, 0x128
push eax
push dword [ebp + 8]
call fcn.0085d840
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne 0x7ef547
push dword [ebp + 8]
call fcn.007eef91
pop ecx
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x1c]
call fcn.007eee8a
add esp, 0x10
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x9bb158], 0
jne 0x7ef5fb
cmp ebx, 0xffffffff
je 0x7ef5fb
mov esi, 0x9bb178
mov ecx, esi
call fcn.007ec1bd
mov ecx, dword [0x9bb174]
mov eax, ebx
cdq
add eax, dword [ecx + 0x10]
adc edx, dword [ecx + 0x14]
cmp edx, dword [0x907714]
jg 0x7ef5e5
jl 0x7ef5a6
cmp eax, dword [0x907710]
jae 0x7ef5e5
mov ebx, dword [ebp - 0x14]
cmp ebx, dword [0x90771c]
jl 0x7ef5e5
jg 0x7ef5be
mov ebx, dword [ebp - 0x18]
cmp ebx, dword [0x907718]
jbe 0x7ef5e5
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x120]
push eax
mov dword [ecx + 0x14], edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov byte [edi + 0x104], 1
mov byte [ebp - 1], 1
jmp 0x7ef5f2
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.007ec1c8
jmp 0x7ef627
mov eax, dword [0x9bb174]
mov ecx, dword [ebp + 8]
lea esi, [eax + 0x1c]
mov dword [eax + 0x18], ebx
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x7ef60b
mov cx, word [ebp - 8]
mov word [eax + 0x120], cx
mov byte [0x9bb159], 1
mov bl, byte [ebp - 1]
jmp 0x7ef62e
xor bl, bl
push 0x64
push dword [ebp - 0x1c]
call fcn.007ececc
pop ecx
pop ecx
mov al, bl
lea esp, [ebp - 0x334]
pop edi
pop esi
pop ebx
leave
ret