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

Disassembly:
push 0xac
mov eax, 0x485aa3
call fcn.0045edb6
mov esi, ecx
mov dword [ebp - 0xac], esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0xa8], eax
call fcn.0040749a
lea eax, [esi + 0xb4]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], ebx
call fcn.0041bc23
push 1
lea ecx, [ebp - 0x9c]
call fcn.0040a13a
test eax, eax
je 0x4082ce
push 0xfffffffffffffffd
pop ebx
jmp 0x408612
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4082f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
or edi, 0xffffffff
mov dword [ebp - 0x68], eax
mov ecx, edi
jmp 0x40833b
mov eax, dword [ebp - 0xb0]
mov edi, dword [ebp - 0xb4]
mov dword [ebp - 0xa4], eax
mov eax, edi
mov ecx, dword [ebp - 0xa4]
or eax, ecx
jne 0x40833b
cmp byte [esi + 0x1f8], bl
jne 0x40833b
cmp byte [esi + 0x20c], bl
jne 0x40833b
push ebx
push 2
lea eax, [esi + 0x1ec]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040774b
mov ecx, dword [ebp - 0xa4]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov byte [ebp - 0x9d], bl
cmp ecx, eax
jl 0x408358
jg 0x408351
cmp edi, edx
jb 0x408358
mov byte [ebp - 0x9d], 1
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
sub ecx, edx
sar ecx, 2
cmp ecx, 1
jbe 0x4084e5
mov edi, ebx
test ecx, ecx
je 0x40838a
mov esi, ebx
mov eax, dword [edx + esi*4]
add edi, dword [eax + 0x14]
inc esi
cmp esi, ecx
jb 0x408379
mov esi, dword [ebp - 0xac]
lea ecx, [ebp - 0x48]
call fcn.0041b469
mov byte [ebp - 4], 1
test edi, edi
jle 0x4083a3
push edi
lea ecx, [ebp - 0x44]
call fcn.0040308c
mov edi, dword [ebp - 0xa8]
mov edx, ebx
mov dword [ebp - 0xa4], ebx
mov eax, dword [edi + 4]
mov ecx, dword [edi]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x408477
cmp byte [esi + 0x1f8], 0
jne 0x4083d5
cmp byte [esi + 0x20c], 0
je 0x40843d
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0xb8], ebx
mov edx, dword [eax + 0x14]
dec edx
sub edx, 1
mov dword [ebp - 0xb0], edx
mov edx, dword [ebp - 0xa4]
je 0x40843d
mov edi, dword [ebp - 0xb0]
mov esi, ebx
push 0x20
pop ebx
cmp dword [eax + 0x18], 8
lea ecx, [eax + 4]
jb 0x40840a
mov ecx, dword [eax + 4]
movzx ecx, word [ecx + esi*2]
cmp ecx, 0xd
je 0x408418
cmp ecx, 0xa
jne 0x408428
cmp dword [eax + 0x18], 8
lea ecx, [eax + 4]
jb 0x408424
mov ecx, dword [eax + 4]
mov word [ecx + edx*2], bx
inc esi
cmp esi, edi
jb 0x4083fe
mov edi, dword [ebp - 0xa8]
xor ebx, ebx
mov esi, dword [ebp - 0xac]
mov ecx, dword [edi]
mov eax, dword [ecx + edx*4]
cmp dword [eax + 0x18], 8
lea ecx, [eax + 4]
jb 0x40844c
mov ecx, dword [eax + 4]
push dword [eax + 0x14]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00408b10
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0xa4]
mov ecx, dword [edi]
inc edx
sub eax, ecx
mov dword [ebp - 0xa4], edx
sar eax, 2
cmp edx, eax
jb 0x4083c3
cmp byte [esi + 0x1f8], 0
jne 0x4084aa
cmp byte [esi + 0x20c], 0
jne 0x4084aa
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x34]
cmovae ecx, dword [ebp - 0x44]
add eax, eax
cdq
push edx
push eax
push ecx
lea ecx, [ebp - 0x9c]
call fcn.0040774b
jmp 0x4084d8
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x60]
call fcn.0041b25d
cmp dword [ebp - 0x4c], 0x10
lea eax, [ebp - 0x60]
push ebx
push dword [ebp - 0x50]
cmovae eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x9c]
push eax
call fcn.0040774b
lea ecx, [ebp - 0x60]
call fcn.004016b2
lea ecx, [ebp - 0x48]
call fcn.0041bf1b
jmp 0x40858d
cmp byte [esi + 0x1f8], bl
jne 0x408519
cmp byte [esi + 0x20c], bl
jne 0x408519
mov eax, dword [edx]
mov edx, dword [eax + 0x14]
lea ecx, [eax + 4]
cmp dword [ecx + 0x14], 8
jb 0x408505
mov ecx, dword [ecx]
lea eax, [edx + edx]
cdq
push edx
push eax
push ecx
lea ecx, [ebp - 0x9c]
call fcn.0040774b
jmp 0x40858d
mov edx, dword [edx]
lea ecx, [ebp - 0x2c]
add edx, 4
call fcn.0041b25d
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x2c]
add eax, 0xfffffffe
je 0x40856c
mov esi, eax
cmp edx, 0x10
lea eax, [ebp - 0x2c]
cmovae eax, edi
mov al, byte [eax + ecx]
cmp al, 0xd
je 0x40854c
cmp al, 0xa
jne 0x40855f
cmp edx, 0x10
lea eax, [ebp - 0x2c]
cmovae eax, edi
mov byte [eax + ecx], 0x20
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x2c]
inc ecx
cmp ecx, esi
jb 0x408538
mov esi, dword [ebp - 0xac]
xor ebx, ebx
push ebx
push dword [ebp - 0x1c]
cmp edx, 0x10
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x9c]
cmovae eax, edi
push eax
call fcn.0040774b
lea ecx, [ebp - 0x2c]
call fcn.004016b2
lea ecx, [ebp - 0x9c]
call fcn.00407547
cmp byte [ebp - 0x9d], 0
je 0x408612
cmp byte [esi], 0
je 0x4085bd
add esi, 0xb8
cmp dword [esi + 0x14], 8
jb 0x4085b4
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x408612
lea edi, [esi + 0xf0]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4085cd
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x14], 8
jb 0x4085dc
mov edi, dword [edi]
lea ebx, [esi + 0xd4]
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4085ec
mov eax, dword [ebx]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileW]
push eax
call edi
cmp dword [ebx + 0x14], 8
jb 0x4085fe
mov ebx, dword [ebx]
add esi, 0xb8
cmp dword [esi + 0x14], 8
jb 0x40860c
mov esi, dword [esi]
push ebx
push esi
call edi
xor ebx, ebx
lea ecx, [ebp - 0x9c]
call fcn.004074be
mov eax, ebx
call fcn.0045ed60
ret 8