Function at 0x492b80
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e59c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
push esi
xor ebx, ebx
push edi
mov al, byte [ebp + 0x44]
lea esi, [ebp + 0x44]
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
call fcn.00407190
mov ecx, dword [0x4ea898]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
call fcn.00406bb0
mov edx, dword [0x4ea898]
lea ecx, [esp + 0x24]
push edx
push ebx
push ebp
mov dword [esp + 0x48], ebx
call fcn.00406a10
mov edi, str..tmp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str..tmp
lea ecx, [esp + 0x2c]
call fcn.00406af0
mov al, byte [esi]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00407190
mov ecx, dword [0x4ea898]
push ecx
push ebx
push esi
lea ecx, [esp + 0x20]
call fcn.00406bb0
mov edx, dword [0x4ea898]
lea ecx, [esp + 0x14]
push edx
push ebx
push ebp
mov byte [esp + 0x48], 1
call fcn.00406a10
mov edi, 0x51204c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x51204c
lea ecx, [esp + 0x1c]
call fcn.00406af0
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x492c5e
mov eax, 0x4ea894
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
mov eax, dword [esp + 0x28]
mov ecx, 0x4ea894
cmp eax, ebx
je 0x492c76
mov ecx, eax
mov eax, dword [ebp + 0x24]
cmp eax, ebx
jne 0x492c82
mov eax, 0x4ea894
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call fcn.00415540
add esp, 0xc
cmp eax, 0xffffffff
jne 0x492cdd
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x492ca3
mov eax, 0x4ea894
push eax
call esi
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], bl
call fcn.00407190
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xffffffff
call fcn.00407190
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x30]
cmp eax, ecx
je 0x492d53
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x492cf5
mov eax, 0x4ea894
push eax
call esi
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], bl
call fcn.00407190
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x492d3e
mov al, byte [ecx - 1]
cmp al, bl
je 0x492d34
cmp al, 0xff
je 0x492d34
dec al
pop edi
pop esi
mov byte [ecx - 1], al
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jne 0x492d60
mov ecx, 0x4ea894
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x492d6d
mov eax, 0x4ea894
push ecx
push eax
call fcn.004b23c6
mov ecx, dword [esp + 0x20]
add esp, 8
cmp ecx, ebx
je 0x492d9b
mov al, byte [ecx - 1]
cmp al, bl
je 0x492d91
cmp al, 0xff
je 0x492d91
dec al
mov byte [ecx - 1], al
jmp 0x492d9b
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x492dcb
mov al, byte [ecx - 1]
cmp al, bl
je 0x492dc1
cmp al, 0xff
je 0x492dc1
dec al
mov byte [ecx - 1], al
jmp 0x492dcb
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret