Function at 0x409aae
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x42487c
call fcn.0040da7c
sub esp, 0x34
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0xac], edi
je 0x409c58
mov al, byte [esi + 0xbc]
push 0xffffffffffffffff
push 1
push dword [esi + 4]
movzx eax, al
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [esi + 0x4c]
cmp eax, edi
je 0x409af6
push eax
call fcn.0040da9b
pop ecx
mov dword [esi + 0x4c], edi
mov eax, dword [esi + 0x34]
cmp dword [eax], edi
jne 0x409cdb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
cmp eax, ebx
jl 0x409cea
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
test eax, eax
je 0x409cea
cmp dword [esi + 0xb0], edi
mov ebx, str..dwn
je 0x409bd3
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0040b3f7
lea eax, [ebp - 0x1c]
lea ecx, [esi + 0x54]
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], edi
call fcn.0040b58f
push edi
push 0x80
push 3
push edi
push edi
push 0x40000000
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040b6c3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x10], eax
call fcn.0040b487
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040b487
cmp dword [ebp - 0x10], edi
je 0x409cdb
push edi
push edi
push dword [esi + 0xb4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
or edi, 0xffffffff
cmp eax, edi
je 0x409bcc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x409bcc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x409bd3
mov eax, edi
jmp 0x409d45
lea edi, [esi + 0x54]
mov ecx, edi
call fcn.0040b6c3
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0040b3f7
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 2
call fcn.0040b58f
mov ebx, eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0040b6c3
push eax
mov ecx, ebx
call fcn.0040b6c3
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ebx, eax
lea ecx, [ebp - 0x34]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 2
inc bl
call fcn.0040b487
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040b487
test bl, bl
jne 0x409cdb
mov dword [esi + 0xc0], 1
xor edi, edi
jmp 0x409cea
mov eax, dword [esi + 4]
push 0xea60
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x34]
cmp dword [ecx], edi
jne 0x409cdb
cmp eax, edi
jne 0x409cea
push str..dwn
lea ecx, [ebp - 0x28]
call fcn.0040b3f7
lea eax, [ebp - 0x28]
lea ebx, [esi + 0x54]
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
mov dword [ebp - 4], 4
call fcn.0040b58f
mov dword [ebp - 0x10], eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.0040b6c3
mov ecx, dword [ebp - 0x10]
push eax
call fcn.0040b6c3
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ebx, eax
lea ecx, [ebp - 0x40]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 4
inc bl
call fcn.0040b487
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b487
test bl, bl
je 0x409ce0
or eax, 0xffffffff
jmp 0x409d45
mov dword [esi + 0xc0], 1
mov eax, dword [esi + 0x40]
cmp eax, edi
je 0x409cfb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x40], edi
mov eax, dword [esi + 0x48]
cmp eax, edi
je 0x409d0c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x48], edi
mov eax, dword [esi + 0x44]
cmp eax, edi
je 0x409d1d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0xc8]
cmp eax, edi
je 0x409d43
mov ecx, dword [esi + 0xc0]
push esi
neg ecx
sbb ecx, ecx
add ecx, 3
push ecx
push dword [0x431d6c]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret