Function at 0x492c10
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4e5860
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.00407180
mov ecx, dword [0x4ea898]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
call fcn.00406ba0
mov edx, dword [0x4ea898]
lea ecx, [esp + 0x24]
push edx
push ebx
push ebp
mov dword [esp + 0x48], ebx
call fcn.00406a00
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.00406ae0
mov al, byte [esi]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00407180
mov ecx, dword [0x4ea898]
push ecx
push ebx
push esi
lea ecx, [esp + 0x20]
call fcn.00406ba0
mov edx, dword [0x4ea898]
lea ecx, [esp + 0x14]
push edx
push ebx
push ebp
mov byte [esp + 0x48], 1
call fcn.00406a00
mov edi, 0x512074
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x512074
lea ecx, [esp + 0x1c]
call fcn.00406ae0
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x492cee
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 0x492d06
mov ecx, eax
mov eax, dword [ebp + 0x24]
cmp eax, ebx
jne 0x492d12
mov eax, 0x4ea894
lea edx, [esp + 0x10]
push edx
push ecx
push eax
call fcn.00415510
add esp, 0xc
cmp eax, 0xffffffff
jne 0x492d6d
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x492d33
mov eax, 0x4ea894
push eax
call esi
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], bl
call fcn.00407180
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xffffffff
call fcn.00407180
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 0x492de3
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x492d85
mov eax, 0x4ea894
push eax
call esi
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], bl
call fcn.00407180
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x492dce
mov al, byte [ecx - 1]
cmp al, bl
je 0x492dc4
cmp al, 0xff
je 0x492dc4
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.004d4597
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 0x492df0
mov ecx, 0x4ea894
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x492dfd
mov eax, 0x4ea894
push ecx
push eax
call fcn.004b2266
mov ecx, dword [esp + 0x20]
add esp, 8
cmp ecx, ebx
je 0x492e2b
mov al, byte [ecx - 1]
cmp al, bl
je 0x492e21
cmp al, 0xff
je 0x492e21
dec al
mov byte [ecx - 1], al
jmp 0x492e2b
dec ecx
push ecx
call fcn.004d4597
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 0x492e5b
mov al, byte [ecx - 1]
cmp al, bl
je 0x492e51
cmp al, 0xff
je 0x492e51
dec al
mov byte [ecx - 1], al
jmp 0x492e5b
dec ecx
push ecx
call fcn.004d4597
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