Function at 0x407c0a
Capabilities:
Delete file
Get disk size
Get file size
Move file

Disassembly:
push ebp
sub esp, 0x64
push 0x30
mov eax, 0x4278b0
call fcn.004151ef
mov ebx, ecx
lea eax, [ebx + 0x10]
push eax
lea ecx, [ebp + 0x44]
mov dword [ebp - 4], 1
mov dword [ebp + 0x20], eax
call fcn.00401d4e
lea eax, [ebp + 0x70]
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 2
call fcn.00401d4e
or dword [ebp + 0x24], 0xffffffff
push 0x429960
push 0x42995c
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 3
call fcn.00402391
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x54]
push eax
mov ecx, ebx
call fcn.004028f1
test al, al
jne 0x408244
mov eax, dword [0x433028]
mov dword [ebp + 0x58], eax
push dword [ebx + 0x158]
lea ecx, [ebx + 0x15c]
mov byte [ebp - 4], 4
call fcn.00402a99
push dword [eax + 4]
mov esi, str._s_s
push dword [ebp + 0x70]
lea eax, [ebp + 0x58]
push esi
push eax
call fcn.0040231b
add esp, 0x10
xor edi, edi
push edi
push edi
push 4
push edi
push edi
push edi
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x50], eax
jne 0x407d0b
push 6
mov ecx, ebx
call fcn.004027c9
lea ecx, [ebp + 0x58]
call fcn.004010f1
lea ecx, [ebp + 0x54]
call fcn.004010f1
lea ecx, [ebp + 0x44]
call fcn.004010f1
lea ecx, [ebp + 0x70]
call fcn.004010f1
lea ecx, [ebp + 0x74]
call fcn.004010f1
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 8
lea ecx, [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push dword [ebp + 0x50]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
jne 0x407d33
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov ecx, dword [ebp + 0x54]
mov al, byte [ecx]
mov edx, dword [ebp + 0x44]
movsx edx, byte [edx]
movsx eax, al
add edx, 0x20
add eax, 0x20
cmp eax, edx
je 0x407dbc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExA]
test eax, eax
je 0x407d81
mov eax, dword [ebx + 0x174]
cmp eax, dword [ebp + 4]
jb 0x407dbc
ja 0x407d7a
mov eax, dword [ebx + 0x170]
cmp eax, dword [ebp]
jbe 0x407dbc
push 5
jmp 0x407cc4
push 8
mov ecx, ebx
call fcn.004027c9
lea ecx, [ebp + 0x58]
call fcn.004010f1
or esi, 0xffffffff
lea ecx, [ebp + 0x54]
call fcn.004010f1
lea ecx, [ebp + 0x44]
call fcn.004010f1
lea ecx, [ebp + 0x70]
call fcn.004010f1
lea ecx, [ebp + 0x74]
call fcn.004010f1
mov eax, esi
jmp 0x407cf6
mov eax, dword [ebx + 0xc]
cmp eax, 1
je 0x407dc9
cmp eax, 2
jne 0x407dd0
mov ecx, ebx
call fcn.00403739
mov dword [ebp + 0x2c], edi
mov dword [ebp + 0x30], edi
mov dword [ebp + 0x34], edi
lea eax, [ebx + 0x15c]
mov ecx, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 5
call fcn.00402b38
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x64], eax
jmp 0x407e4a
lea ecx, [ebp + 0x60]
call fcn.00402af3
push dword [eax + 4]
lea eax, [ebp + 0x58]
push dword [ebp + 0x44]
push esi
push eax
call fcn.0040231b
add esp, 0x10
lea ecx, [ebp + 0x60]
call fcn.00402af3
cmp dword [eax + 0x1c], 0xffffffff
jne 0x407e36
lea eax, [ebp + 0x58]
push eax
mov ecx, ebx
call fcn.004029a3
test al, al
je 0x407e42
lea eax, [ebp + 0x60]
push eax
lea ecx, [ebp + 0x28]
call fcn.00407af9
lea ecx, [ebp + 0x60]
call fcn.00402b14
lea eax, [ebx + 0x15c]
mov ecx, dword [eax + 8]
push eax
push ecx
lea ecx, [ebp + 0x3c]
call fcn.00402b38
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp + 0x60]
call fcn.00402bf8
test al, al
je 0x407dfe
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x1c], edi
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x2c]
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 6
call fcn.00402b38
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x64], eax
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x30]
lea ecx, [ebp + 0x3c]
call fcn.00402b38
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp + 0x60]
call fcn.00402bf8
test al, al
jne 0x407f99
mov byte [ebp + 0x5f], al
lea ecx, [ebp + 0x60]
call fcn.00402af3
mov ecx, eax
call fcn.00402af3
push dword [eax + 4]
lea eax, [ebp + 0x58]
push dword [ebp + 0x44]
push esi
push eax
call fcn.0040231b
add esp, 0x10
push 0x429960
push 0x42995c
lea ecx, [ebp + 0x58]
call fcn.00402391
mov eax, dword [ebp + 0x58]
mov eax, dword [eax - 8]
mov dword [ebp + 0x50], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
lea ecx, [ebp + 0x48]
call fcn.00402b38
push 1
lea ecx, [ebp + 0x58]
call fcn.00401a3e
mov edi, eax
add edi, dword [ebp + 0x50]
push 1
lea ecx, [ebp + 0x58]
call fcn.00401a3e
push dword [ebp + 0x70]
lea ecx, [ebp + 0x10]
push edi
push eax
push dword [ebp + 0x4c]
push dword [ebp + 0x48]
call fcn.00406b16
lea eax, [ebp + 0x5f]
push eax
lea ecx, [ebp + 0x10]
call fcn.00407b4e
lea ecx, [ebp + 0x60]
call fcn.00402af3
mov ecx, eax
call fcn.00402af3
cmp dword [eax + 0x1c], 0xffffffff
je 0x407f6c
lea ecx, [ebp + 0x60]
call fcn.00402af3
mov ecx, eax
call fcn.00402af3
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp + 0x60]
call fcn.00402b68
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x30]
lea ecx, [ebp + 0x3c]
call fcn.00402b38
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp + 0x60]
call fcn.00402bf8
test al, al
je 0x407ebb
xor edi, edi
lea eax, [ebp + 0x5f]
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp + 0x5f], 0
call fcn.00407b4e
cmp dword [ebp + 0x2c], edi
je 0x408014
mov eax, dword [ebp + 0x30]
sub eax, dword [ebp + 0x2c]
sar eax, 3
je 0x408014
push 0x1e
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.00415630
mov eax, dword [ebx + 0x4c]
add esp, 0xc
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x14]
lea ecx, [ebp + 0x48]
call fcn.00402b38
lea ecx, [ebp + 0x48]
call fcn.00402af3
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x54]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp - 0x12], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x28], 1
mov word [ebp - 0x1c], 0x10
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x40802f
cmp dword [ebp - 0x1a], edi
jne 0x40802f
mov ecx, dword [ebp + 0x20]
lea eax, [ebp + 0x54]
push eax
call fcn.0040114e
mov ecx, ebx
call fcn.00403c9c
mov dword [ebp + 0x24], edi
jmp 0x408108
mov eax, dword [0x433028]
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x38], eax
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x2c]
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 8
call fcn.00402b38
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x64], eax
jmp 0x4080d1
lea ecx, [ebp + 0x60]
call fcn.00402af3
mov ecx, eax
call fcn.00402af3
push dword [eax + 4]
lea eax, [ebp + 0x38]
push dword [ebp + 0x54]
push esi
push eax
call fcn.0040231b
add esp, 0x10
lea ecx, [ebp + 0x60]
call fcn.00402af3
mov ecx, eax
call fcn.00402af3
push dword [eax + 4]
lea eax, [ebp + 0x50]
push dword [ebp + 0x44]
push esi
push eax
call fcn.0040231b
add esp, 0x10
lea eax, [ebp + 0x38]
push eax
mov ecx, ebx
call fcn.004029a3
test al, al
je 0x4080c9
lea eax, [ebp + 0x50]
push eax
mov ecx, ebx
call fcn.004029a3
test al, al
jne 0x4080c9
push dword [ebp + 0x50]
push dword [ebp + 0x38]
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
lea ecx, [ebp + 0x60]
call fcn.00402b68
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x30]
lea ecx, [ebp + 0x3c]
call fcn.00402b38
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp + 0x60]
call fcn.00402bf8
test al, al
je 0x40805b
lea ecx, [ebp + 0x38]
call fcn.004010f1
lea ecx, [ebp + 0x50]
mov byte [ebp - 4], 6
call fcn.004010f1
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x2c]
lea ecx, [ebp + 0x48]
call fcn.00402b38
mov eax, dword [ebp + 0x48]
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x64], eax
jmp 0x408207
lea ecx, [ebp + 0x60]
call fcn.00402af3
mov ecx, eax
call fcn.00402af3
mov ecx, eax
call fcn.00402677
test al, al
jne 0x4081ff
push 0x429960
push dword [ebp + 0x20]
lea eax, [ebp + 0x38]
push eax
call fcn.00403369
mov esi, eax
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], 9
call fcn.00402af3
mov ecx, eax
call fcn.00402af3
add eax, 4
push eax
push esi
lea eax, [ebp + 0x50]
push eax
call fcn.00403321
mov esi, dword [eax]
lea ecx, [ebp + 0x60]
call fcn.00402af3
mov ecx, eax
call fcn.00402af3
push edi
push edi
push 3
push edi
push edi
push 0xc0000000
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
lea ecx, [ebp + 0x50]
mov dword [ebx + 0x1c], eax
call fcn.004010f1
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 6
call fcn.004010f1
lea ecx, [ebp + 0x60]
call fcn.00402af3
mov ecx, eax
call fcn.00402af3
cmp dword [eax + 0x1c], 0xffffffff
je 0x4081ff
lea ecx, [ebp + 0x60]
mov dword [ebp + 0x40], edi
call fcn.00402af3
mov ecx, eax
call fcn.00402af3
lea ecx, [ebp + 0x60]
mov esi, eax
call fcn.00402af3
mov ecx, eax
call fcn.00402af3
push edi
lea ecx, [ebp + 0x40]
push ecx
push dword [esi + 0x10]
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea ecx, [ebp + 0x60]
call fcn.00402b68
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x30]
lea ecx, [ebp + 0x48]
call fcn.00402b38
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0x60]
call fcn.00402bf8
test al, al
je 0x408128
lea ecx, [ebp + 0x10]
call fcn.00405878
lea ecx, [ebp + 0x28]
call fcn.00405878
lea ecx, [ebp + 0x58]
call fcn.004010f1
jmp 0x408248
and dword [ebp + 0x24], 0
mov esi, dword [ebp + 0x24]
jmp 0x407d95