Function at 0x1004e85e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1004ea28
lea eax, [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x1004ea0f
mov dword [ebp - 0x10], 0x160a
cmp dword [ebp - 0x10], 0xb1a
jge 0x1004e9f9
mov edx, 0x118c2c1c
mov ecx, 0x10662d10
call fcn.10023fa8
mov edx, 0x118c2bd4
mov ecx, eax
call fcn.10023fa8
mov edx, 0x118c2c3c
mov ecx, eax
call fcn.10023fa8
push 1
mov ecx, 0x118c2bd4
call fcn.100126c9
movsx esi, byte [eax]
push 0
mov ecx, 0x118c2c1c
call fcn.100126c9
movsx eax, byte [eax]
cmp esi, eax
jne 0x1004e914
push 1
mov ecx, 0x118c2c3c
call fcn.100126c9
movsx esi, byte [eax]
push 0
mov ecx, 0x118c2c1c
call fcn.100126c9
movsx eax, byte [eax]
cmp esi, eax
je 0x1004e914
push 0x1000de90
call fcn.10059662
pop ecx
jmp 0x1004e9f9
push 1
mov ecx, 0x118c2bd4
call fcn.100126c9
movsx esi, byte [eax]
push 0
mov ecx, 0x118c2c1c
call fcn.100126c9
movsx eax, byte [eax]
cmp esi, eax
je 0x1004e968
push 1
mov ecx, 0x118c2c3c
call fcn.100126c9
movsx esi, byte [eax]
push 0
mov ecx, 0x118c2c1c
call fcn.100126c9
movsx eax, byte [eax]
cmp esi, eax
jne 0x1004e968
push 0x1000de94
call fcn.10059662
pop ecx
jmp 0x1004e9f9
push 1
mov ecx, 0x118c2bd4
call fcn.100126c9
movsx esi, byte [eax]
push 1
mov ecx, 0x118c2c3c
call fcn.100126c9
movsx eax, byte [eax]
cmp esi, eax
je 0x1004e997
push 0x1000de94
call fcn.10059662
pop ecx
jmp 0x1004e9f9
push 0
push 0
mov ecx, 0x118c2bd4
call fcn.100126c9
mov al, byte [eax]
movzx eax, al
push eax
mov ecx, 0x118c2c04
call fcn.10050542
mov dword [ebp - 0x14], eax
push 0
push 0
mov ecx, 0x118c2c3c
call fcn.100126c9
mov al, byte [eax]
movzx eax, al
push eax
mov ecx, 0x118c2c04
call fcn.10050542
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jle 0x1004e9ee
push 0x1000de90
call fcn.10059662
pop ecx
jmp 0x1004e9f9
push 0x1000de94
call fcn.10059662
pop ecx
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1004ea0d
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1004ea23
push 0
push 0x72b
push 0x1795
push 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1004eaab
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x1004ea63
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov eax, dword [eax]
and dword [eax + 0x10], 0
jmp 0x1004eaab
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x1004ea91
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jge 0x1004eaab
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x3c]
call fcn.10010f08
or dword [eax], 0xffffffff
jmp 0x1004ea86
pop esi
mov esp, ebp
pop ebp
ret