Function at 0x40f48c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov ecx, dword [0x422518]
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.004010dd
xor ebx, ebx
cmp eax, ebx
jge 0x40f4b6
mov eax, 0x7a2
jmp 0x40f707
mov ecx, dword [0x422518]
imul eax, eax, 0xb5
mov edx, dword [ecx + 0x258]
mov esi, dword [ebp + 0xc]
add edx, dword [ecx + 0x118]
add eax, edx
mov dword [esi], eax
push eax
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x18c]
push str..MSG
push eax
call fcn.0040ed07
pop ecx
cmp eax, ebx
pop ecx
jne 0x40f707
mov eax, dword [esi]
add eax, 0x95
cmp byte [eax], bl
je 0x40f521
push str.Hidden
push eax
call fcn.00416040
pop ecx
mov dword [ebp + 0xc], 1
test eax, eax
pop ecx
jne 0x40f524
mov dword [ebp + 0xc], ebx
push dword [ebp + 8]
mov ecx, dword [0x42253c]
call fcn.00409893
mov edi, eax
cmp di, 0xffff
je 0x40f56c
mov ecx, dword [0x42253c]
movzx eax, di
mov ecx, dword [ecx + 4]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [ecx + eax + 4], 1
mov ecx, dword [0x42253c]
mov ecx, dword [ecx + 4]
cmp word [ecx + eax + 8], bx
jbe 0x40f56c
mov eax, dword [esi]
mov byte [eax + 0x11], 0x64
jmp 0x40f5c8
mov eax, dword [esi]
mov byte [eax + 0x11], 0x63
mov ecx, dword [0x422978]
cmp ecx, ebx
je 0x40f58c
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.00403b02
cmp di, 0xffff
je 0x40f5a1
mov ecx, dword [0x42253c]
push 1
push edi
call fcn.00409ccc
lea eax, [ebp - 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp di, 0xffff
je 0x40f5c8
mov ecx, dword [0x42253c]
movzx eax, di
mov ecx, dword [ecx + 4]
lea eax, [eax + eax*4]
mov dword [ecx + eax*2 + 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40f705
mov ecx, dword [0x422528]
lea eax, [ebp - 4]
push eax
mov eax, dword [esi]
add eax, 0x95
push ebx
push eax
call fcn.0040538d
cmp eax, ebx
jne 0x40f707
push dword [ebp - 4]
call fcn.0040f70c
cmp eax, ebx
pop ecx
jne 0x40f707
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.0040f3e5
mov eax, dword [ebp - 4]
add esp, 0xc
lea ecx, [eax + 2]
mov ax, word [eax]
push ecx
mov ecx, dword [0x42252c]
push eax
call fcn.00406eb5
cmp eax, ebx
jne 0x40f707
cmp dword [ebp + 0x14], ebx
je 0x40f6e1
mov eax, dword [ebp - 4]
push ebx
add eax, 0x21e
push eax
push 1
call fcn.0040e575
mov al, byte [0x422524]
push 0x1f
mov byte [ebp - 0x88], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x87]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 4]
push dword [eax + 0x216]
push dword [eax + 0x212]
push dword [eax + 0x20e]
push dword [eax + 0x20a]
push dword [eax + 0x206]
lea eax, [ebp - 0x88]
push str._X__X__X__X__X
push eax
call fcn.00416b17
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 4]
add eax, 0x21e
push eax
push 0x10
call fcn.0040e575
mov eax, dword [ebp - 4]
add eax, 0x21e
push eax
push dword [ebp + 8]
push 0x400
call fcn.0040e575
mov eax, dword [ebp - 4]
add esp, 0x40
add eax, 0x21e
push eax
push dword [ebp + 8]
push 0x800
call fcn.0040e575
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x274]
call fcn.00414c70
test eax, eax
je 0x40f705
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x274]
mov eax, dword [ecx]
call dword [eax + 0x2c]
cmp eax, ebx
jne 0x40f707
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret