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

Disassembly:
push 0x74
mov eax, 0x484c6d
call fcn.0045e53f
mov ebx, ecx
mov dword [ebp - 0x80], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x74], eax
call fcn.004072fc
and dword [ebp - 4], 0
lea eax, [ebx + 0xb4]
push eax
lea ecx, [ebp - 0x68]
call fcn.0041b7fa
push 1
lea ecx, [ebp - 0x6c]
call fcn.00409d11
test eax, eax
je 0x4080ec
push 0xfffffffffffffffd
pop esi
jmp 0x40829c
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x40810d
call dword [sym.imp.KERNEL32.dll_GetLastError]
or edi, 0xffffffff
mov dword [ebp - 0x38], eax
mov ecx, edi
jmp 0x408133
mov edi, dword [ebp - 0x7c]
mov eax, edi
mov ecx, dword [ebp - 0x78]
or eax, ecx
mov dword [ebp - 0x78], ecx
jne 0x408133
xor esi, esi
lea eax, [ebx + 0x1ec]
push esi
push 2
push eax
lea ecx, [ebp - 0x6c]
call fcn.004075ad
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 0x40814c
jg 0x408148
cmp edi, esi
jb 0x40814c
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 0x408200
mov esi, edx
test ecx, ecx
je 0x40817d
mov ebx, edx
mov edi, eax
mov eax, dword [edi + ebx*4]
add esi, dword [eax + 0x14]
inc ebx
cmp ebx, ecx
jb 0x40816c
mov ebx, dword [ebp - 0x80]
mov edi, dword [ebp - 0x74]
lea ecx, [ebp - 0x30]
call fcn.0041b057
mov byte [ebp - 4], 1
test esi, esi
jle 0x408198
push esi
lea ecx, [ebp - 0x2c]
call fcn.00402f23
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 0x4081db
mov eax, dword [ecx + edx*4]
lea ecx, [eax + 4]
cmp dword [eax + 0x18], esi
jb 0x4081ba
mov ecx, dword [eax + 4]
push dword [eax + 0x14]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004086e7
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 0x4081ac
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.004075ad
lea ecx, [ebp - 0x30]
call fcn.0041baf2
jmp 0x408221
mov eax, dword [eax]
push 8
pop esi
mov edx, dword [eax + 0x14]
lea ecx, [eax + 4]
cmp dword [ecx + 0x14], esi
jb 0x408212
mov ecx, dword [ecx]
lea eax, [edx + edx]
cdq
push edx
push eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.004075ad
lea ecx, [ebp - 0x6c]
call fcn.004073a9
cmp byte [ebp - 0x6d], 0
je 0x40829a
cmp byte [ebx], 0
je 0x40824a
lea eax, [ebx + 0xb8]
cmp dword [eax + 0x14], esi
jb 0x408241
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40829a
lea edi, [ebx + 0xf0]
mov eax, edi
cmp dword [edi + 0x14], esi
jb 0x408259
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], esi
jb 0x408267
mov edi, dword [edi]
add ebx, 0xd4
mov eax, ebx
cmp dword [ebx + 0x14], esi
jb 0x408276
mov eax, dword [ebx]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
push eax
call edi
cmp dword [ebx + 0x14], esi
jb 0x408287
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x80]
add eax, 0xb8
cmp dword [eax + 0x14], esi
jb 0x408296
mov eax, dword [eax]
push ebx
push eax
call edi
xor esi, esi
lea ecx, [ebp - 0x6c]
call fcn.00407320
mov eax, esi
call fcn.0045e4e9
ret 8