Function at 0x40ead0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419751
mov eax, dword fs:[0]
push eax
sub esp, 0xe90
mov eax, dword [0x423808]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe9c], ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xe98], eax
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00410510
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.00410510
mov esi, edi
add esp, 0x18
lea ecx, [esi + 2]
mov edi, edi
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40eb50
push edi
lea eax, [ebp - 0x830]
sub esi, ecx
push 0x208
push eax
sar esi, 1
call fcn.004106db
add esp, 0xc
cmp word [edi + esi*2 - 2], 0x5c
je 0x40eb95
push 0x41a518
lea eax, [ebp - 0x830]
push 0x208
push eax
call fcn.0041066f
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x420]
push 0x208
push eax
call fcn.004106db
push str.ver.con
lea eax, [ebp - 0x420]
push 0x208
push eax
call fcn.0041066f
xor eax, eax
mov dword [ebp - 0x84c], 7
mov dword [ebp - 0x850], 0
mov word [ebp - 0x860], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x860]
push eax
call fcn.0040e590
xor eax, eax
add esp, 0x1c
mov dword [ebp - 0x864], 7
mov dword [ebp - 0x868], 0
mov word [ebp - 0x878], ax
cmp word [ebp - 0x420], ax
jne 0x40ec1c
xor ecx, ecx
jmp 0x40ec34
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ec25
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x878]
call fcn.004021e0
cmp dword [ebp - 0x84c], 8
mov esi, dword [ebp - 0xe9c]
lea eax, [ebp - 0x860]
cmovae eax, dword [ebp - 0x860]
push eax
lea eax, [ebp - 0x878]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040e180
cmp dword [ebp - 0x864], 8
mov bl, al
mov byte [ebp - 4], 0
jb 0x40ec91
push dword [ebp - 0x878]
call fcn.0040f137
add esp, 4
test bl, bl
je 0x40ecaf
push edi
lea eax, [esi + 0x20c]
push 0x208
push eax
call fcn.004106db
add esp, 0xc
jmp 0x40edf2
lea eax, [ebp - 0x830]
push eax
call fcn.0040e870
lea eax, [ebp - 0x830]
push eax
call fcn.0040e280
xor eax, eax
add esp, 8
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], 0
mov word [ebp - 0x848], ax
lea eax, [ebp - 0x848]
push eax
push dword [ebp - 0xe98]
mov ecx, esi
push dword [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0040e390
mov bl, al
test bl, bl
je 0x40edbe
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push edi
push eax
call fcn.0040b3f0
add esp, 8
test eax, eax
jne 0x40ed6e
lea ecx, [ebp - 0xe94]
mov bl, 1
call fcn.0040de60
cmp dword [ebp - 0x84c], 8
lea eax, [ebp - 0x860]
cmovae eax, dword [ebp - 0x860]
push eax
lea eax, [ebp - 0xe90]
push 0x104
push eax
mov dword [ebp - 0xe94], 0x61c
call fcn.004106db
add esp, 0xc
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
lea eax, [esi + 0x20c]
push 0x208
push eax
call fcn.004106db
add esp, 0xc
cmp dword [ebp - 0x834], 8
jb 0x40edd5
push dword [ebp - 0x848]
call fcn.0040f137
add esp, 4
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], 0
mov word [ebp - 0x848], ax
cmp dword [ebp - 0x84c], 8
jb 0x40ee09
push dword [ebp - 0x860]
call fcn.0040f137
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fa6b
mov esp, ebp
pop ebp
ret 0xc