Function at 0x408104
Capabilities:
Delete file
Get file size
Move file

Disassembly:
push 0x74
mov eax, 0x485270
call fcn.0045e574
mov ebx, ecx
mov dword [ebp - 0x80], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x74], eax
call fcn.0040735c
and dword [ebp - 4], 0
lea eax, [ebx + 0xb4]
push eax
lea ecx, [ebp - 0x68]
call fcn.0041b82a
push 1
lea ecx, [ebp - 0x6c]
call fcn.00409d71
test eax, eax
je 0x40814c
push 0xfffffffffffffffd
pop esi
jmp 0x4082fc
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x40816d
call dword [sym.imp.KERNEL32.dll_GetLastError]
or edi, 0xffffffff
mov dword [ebp - 0x38], eax
mov ecx, edi
jmp 0x408193
mov edi, dword [ebp - 0x7c]
mov eax, edi
mov ecx, dword [ebp - 0x78]
or eax, ecx
mov dword [ebp - 0x78], ecx
jne 0x408193
xor esi, esi
lea eax, [ebx + 0x1ec]
push esi
push 2
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040760d
mov ecx, dword [ebp - 0x78]
mov esi, dword [ebx + 8]
xor edx, edx
mov eax, dword [ebx + 0xc]
mov byte [ebp - 0x6d], dl
cmp ecx, eax
jl 0x4081ac
jg 0x4081a8
cmp edi, esi
jb 0x4081ac
mov byte [ebp - 0x6d], 1
mov edi, dword [ebp - 0x74]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
sub ecx, eax
sar ecx, 2
cmp ecx, 1
jbe 0x408260
mov esi, edx
test ecx, ecx
je 0x4081dd
mov ebx, edx
mov edi, eax
mov eax, dword [edi + ebx*4]
add esi, dword [eax + 0x14]
inc ebx
cmp ebx, ecx
jb 0x4081cc
mov ebx, dword [ebp - 0x80]
mov edi, dword [ebp - 0x74]
lea ecx, [ebp - 0x30]
call fcn.0041b087
mov byte [ebp - 4], 1
test esi, esi
jle 0x4081f8
push esi
lea ecx, [ebp - 0x2c]
call fcn.00402f51
xor edx, edx
mov eax, dword [edi + 4]
mov ecx, dword [edi]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x74], edx
push 8
pop esi
test eax, eax
je 0x40823b
mov eax, dword [ecx + edx*4]
lea ecx, [eax + 4]
cmp dword [eax + 0x18], esi
jb 0x40821a
mov ecx, dword [eax + 4]
push dword [eax + 0x14]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00408747
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0x74]
mov ecx, dword [edi]
inc edx
sub eax, ecx
mov dword [ebp - 0x74], edx
sar eax, 2
cmp edx, eax
jb 0x40820c
cmp dword [ebp - 0x18], esi
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
add eax, eax
cdq
push edx
push eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.0040760d
lea ecx, [ebp - 0x30]
call fcn.0041bb22
jmp 0x408281
mov eax, dword [eax]
push 8
pop esi
mov edx, dword [eax + 0x14]
lea ecx, [eax + 4]
cmp dword [ecx + 0x14], esi
jb 0x408272
mov ecx, dword [ecx]
lea eax, [edx + edx]
cdq
push edx
push eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.0040760d
lea ecx, [ebp - 0x6c]
call fcn.00407409
cmp byte [ebp - 0x6d], 0
je 0x4082fa
cmp byte [ebx], 0
je 0x4082aa
lea eax, [ebx + 0xb8]
cmp dword [eax + 0x14], esi
jb 0x4082a1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4082fa
lea edi, [ebx + 0xf0]
mov eax, edi
cmp dword [edi + 0x14], esi
jb 0x4082b9
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], esi
jb 0x4082c7
mov edi, dword [edi]
add ebx, 0xd4
mov eax, ebx
cmp dword [ebx + 0x14], esi
jb 0x4082d6
mov eax, dword [ebx]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
push eax
call edi
cmp dword [ebx + 0x14], esi
jb 0x4082e7
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x80]
add eax, 0xb8
cmp dword [eax + 0x14], esi
jb 0x4082f6
mov eax, dword [eax]
push ebx
push eax
call edi
xor esi, esi
lea ecx, [ebp - 0x6c]
call fcn.00407380
mov eax, esi
call fcn.0045e51e
ret 8