Function at 0x401e80
Capabilities:
Delete file
Enumerate files on windows
Query environment variable
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x449a46
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x4594d4]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4594d4]
xor eax, esp
push eax
lea eax, [esp + 0x4a8]
mov dword fs:[0], eax
push 0x206
xor edi, edi
lea ecx, [esp + 0x2a2]
xor eax, eax
push edi
push ecx
mov word [esp + 0x2a8], ax
call fcn.0042d120
add esp, 0xc
push 0x104
lea edx, [esp + 0x2a0]
push edx
push str._programfiles_Enigma_Software_GroupSpyHunterdefs_s
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
mov word [esp + 0x34], ax
mov ebp, 7
lea eax, [esp + 0x29c]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401f13
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2a0]
lea esi, [esp + 0x34]
call fcn.00406a40
push str.__x86_
mov ebx, 6
xor eax, eax
mov edx, esi
mov dword [esp + 0x4b4], edi
call fcn.00405cf0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401f5e
mov eax, 6
call fcn.004050d0
xor ecx, ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], edi
mov word [esp + 0x18], cx
mov byte [esp + 0x4b0], 1
mov eax, dword [esp + 0x34]
mov esi, 8
cmp dword [esp + 0x48], esi
jae 0x401f88
lea eax, [esp + 0x34]
push 0x44c4f8
push eax
lea ecx, [esp + 0x1c]
call fcn.00401d70
push 0x24c
lea edx, [esp + 0x5c]
push edi
push edx
mov dword [esp + 0x60], edi
call fcn.0042d120
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp dword [esp + 0x2c], esi
jae 0x401fbc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x402009
cmp dword [esp + 0x2c], esi
jb 0x401fe2
mov edx, dword [esp + 0x18]
push edx
call fcn.0042bbb6
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], ax
cmp dword [esp + 0x48], esi
jb 0x4020fa
mov ecx, dword [esp + 0x34]
push ecx
jmp 0x4020f2
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x402020
mov edx, 0x2e
cmp dx, word [esp + 0x78]
jne 0x402046
mov ax, word [esp + 0x7a]
xor ecx, ecx
cmp cx, ax
je 0x4020a2
cmp dx, ax
jne 0x402046
xor eax, eax
cmp ax, word [esp + 0x7c]
je 0x4020a2
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x402054
lea eax, [esp + 0x34]
lea ecx, [esp + 0x78]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401d70
mov eax, dword [esp + 0x20]
add esp, 8
cmp dword [esp + 0x2c], esi
jae 0x402074
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
jne 0x4020a2
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], esi
jae 0x402089
lea eax, [esp + 0x18]
push 0x80
push eax
call ebx
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], esi
jae 0x40209f
lea eax, [esp + 0x18]
push eax
call edi
lea edx, [esp + 0x4c]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402020
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x2c], esi
jb 0x4020d0
mov eax, dword [esp + 0x18]
push eax
call fcn.0042bbb6
add esp, 4
xor ecx, ecx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], cx
cmp dword [esp + 0x48], esi
jb 0x4020fa
mov edx, dword [esp + 0x34]
push edx
call fcn.0042bbb6
add esp, 4
mov ecx, dword [esp + 0x4a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.0042bbc1
add esp, 0x4a0
ret