Function at 0x490eb0
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x5019fd
call fcn.004c13fc
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
mov dword [ebp - 0x1c], esi
call fcn.00491121
pop ecx
push eax
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004db0a7
xor edi, edi
lea eax, [esi + 0x52]
push edi
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], edi
call fcn.004ba126
push dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00490d03
mov esi, eax
mov dword [ebp - 0x24], esi
cmp byte [esi + 0x116], 1
je 0x490f1c
lea ecx, [ebp - 0x30]
call fcn.004ba162
xor esi, esi
jmp 0x4910f6
cmp dword [esi + 0x11b], edi
jne 0x490ff4
push 0x10
call fcn.004db3f6
pop ecx
mov dword [ebp + 8], eax
cmp eax, edi
mov byte [ebp - 4], 2
je 0x490f44
mov ecx, eax
call fcn.004dc172
jmp 0x490f46
xor eax, eax
mov dword [esi + 0x11b], eax
mov ebx, str..tmp
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0x41
call fcn.004db0a7
mov eax, dword [eax]
push edi
push eax
call fcn.004c24d0
pop ecx
cmp eax, 0xffffffff
pop ecx
lea ecx, [ebp - 0x20]
sete byte [ebp + 0xb]
call fcn.004dae12
cmp byte [ebp + 0xb], 0
je 0x490f91
mov dword [ebp - 0x18], 0x1041
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp + 8]
push eax
call fcn.004db0a7
mov ecx, dword [esi + 0x11b]
mov eax, dword [eax]
push edi
mov byte [ebp - 4], 3
push dword [ebp - 0x18]
mov edx, dword [ecx]
push eax
call dword [edx + 0x20]
mov ebx, eax
lea ecx, [ebp + 8]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 1
inc bl
call fcn.004dae12
mov ecx, dword [esi + 0x11b]
test bl, bl
je 0x490fe9
cmp ecx, edi
je 0x490fde
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x11b], edi
jmp 0x490f0d
mov eax, dword [ecx]
push dword [esi + 0x112]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x11b]
push edi
push dword [esi + 0x10e]
mov byte [ebp - 4], 4
mov eax, dword [ecx]
call dword [eax + 0x28]
jmp 0x49102a
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub ebx, dword [esi + 0x10e]
sub edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0x11b]
mov dword [ebp - 4], 1
add ebx, dword [ebp + 0x14]
add edx, dword [esi + 0x10e]
mov eax, dword [ecx]
push ebx
push edx
call dword [eax + 0x38]
add dword [esi + 0x10e], ebx
mov eax, dword [esi + 0x10e]
cmp eax, dword [esi + 0x112]
jne 0x4910e9
mov eax, dword [ebp - 0x1c]
mov word [eax + 0x24], 9
mov ecx, dword [esi + 0x11b]
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ecx, dword [esi + 0x11b]
test ecx, ecx
je 0x49108f
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov eax, dword [esi + 0x112]
and dword [esi + 0x11b], 0
push 0
mov dword [esi + 0x10e], eax
push dword [ebp - 0x14]
call fcn.004c24d0
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x4910bc
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x14]
push str..tmp
push eax
lea eax, [ebp + 8]
push eax
call fcn.004db0a7
push dword [ebp - 0x14]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [ebp + 8]
call fcn.004dae12
mov byte [esi + 0x116], 2
mov eax, dword [ebp - 0x1c]
push esi
push ebx
mov ecx, dword [eax + 0x2a]
call fcn.00492163
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004ba162
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004dae12
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10