Function at 0x401e30
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ffac
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
mov eax, dword [0x43f5c8]
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
xor ebx, ebx
mov dword [ebp - 0x650], ebx
push 8
mov dword [ebp - 4], ebx
call fcn.0040def0
add esp, 4
cmp eax, ebx
je 0x402343
mov dword [ebp - 0x650], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x650]
lea eax, [ebp - 0x650]
mov dword [ecx], eax
mov dword [ebp - 0x638], 0xf
mov dword [ebp - 0x63c], ebx
mov byte [ebp - 0x64c], bl
mov edi, 1
mov dword [ebp - 4], edi
mov dword [ebp - 0x7b4], ebx
cmp dword [0x44189c], ebx
jne 0x402323
push str.USERPROFILE
mov dword [0x44189c], edi
call fcn.0040d960
lea edx, [ebp - 0x220]
add esp, 4
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, edi
cmp cl, bl
jne 0x401ee3
lea eax, [ebp - 0x220]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x401ef5
mov edx, dword [0x43be58]
mov ecx, dword [0x43be5c]
mov dword [eax], edx
lea edx, [ebp - 0x7b0]
mov dword [eax + 4], ecx
push edx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x7bc], esi
cmp esi, 0xffffffff
je 0x40231d
test byte [ebp - 0x7b0], 0x10
jne 0x401ff3
lea ecx, [ebp - 0x784]
lea eax, [ebp - 0x118]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401f70
cmp dl, bl
je 0x401f6c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401f70
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x401f50
xor eax, eax
jmp 0x401f75
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jge 0x401ff3
push str.USERPROFILE
call fcn.0040d960
lea edx, [ebp - 0x118]
add esp, 4
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, edi
cmp cl, bl
jne 0x401f90
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401fa2
mov cx, word [0x43be60]
lea eax, [ebp - 0x784]
mov word [edi], cx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401fc0
lea edi, [ebp - 0x118]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x401fd0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x7bc]
mov edi, 1
add dword [ebp - 0x7b4], edi
lea edx, [ebp - 0x7b0]
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x401f33
cmp dword [ebp - 0x7b4], edi
jne 0x40211e
push 0x441788
call fcn.0040de70
add esp, 4
push edx
push eax
lea esi, [ebp - 0x670]
call fcn.00401ba0
add esp, 8
mov esi, eax
lea edi, [ebp - 0x650]
mov byte [ebp - 4], 2
call fcn.00403060
mov esi, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x658], esi
jb 0x402069
mov eax, dword [ebp - 0x66c]
push eax
call fcn.0040cd90
add esp, 4
lea ecx, [ebp - 0x670]
mov dword [ebp - 0x658], 0xf
mov dword [ebp - 0x65c], ebx
mov byte [ebp - 0x66c], bl
call fcn.00404ba0
push str.USERPROFILE
call fcn.0040d960
mov edx, 0x441790
add esp, 4
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x4020a0
mov eax, 0x441790
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4020b0
mov ecx, dword [str._uamch]
mov dx, word [0x43be68]
mov dword [eax], ecx
mov cl, byte [0x43be6a]
mov word [eax + 4], dx
mov byte [eax + 6], cl
mov eax, dword [ebp - 0x64c]
cmp dword [ebp - 0x638], esi
jae 0x4020e8
lea eax, [ebp - 0x64c]
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4020f0
mov edi, 0x441790
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x402101
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 1
jmp 0x40212a
cmp dword [ebp - 0x7b4], ebx
jle 0x40231d
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x878]
push eax
call fcn.00404540
mov byte [ebp - 4], 3
cmp dword [ebp - 0x814], ebx
jne 0x4021fc
call fcn.0040c190
mov ecx, dword [eax]
push ecx
call fcn.0040b540
add esp, 4
push eax
lea edx, [ebp - 0x118]
push edx
push str.error_opening_file__s__err:__s_n
call fcn.0040c940
add esp, 0xc
lea ecx, [ebp - 0x810]
mov dword [0x44189c], ebx
mov byte [ebp - 4], 1
call fcn.00404670
lea eax, [ebp - 0x810]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004067f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x638], 0x10
jb 0x4021bf
mov ecx, dword [ebp - 0x64c]
push ecx
call fcn.0040cd90
add esp, 4
lea ecx, [ebp - 0x650]
mov dword [ebp - 0x638], 0xf
mov dword [ebp - 0x63c], ebx
mov byte [ebp - 0x64c], bl
call fcn.00404ba0
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.00407b90
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x878]
mov eax, dword [edx + 4]
mov ecx, dword [ebp + eax - 0x86c]
lea eax, [ebp + eax - 0x878]
and cl, 6
movsx edx, cl
neg edx
sbb edx, edx
not edx
test eax, edx
je 0x4022b1
push 0xa
push eax
call fcn.00404c60
movzx eax, al
push eax
lea ecx, [ebp - 0x630]
push ecx
lea edx, [ebp - 0x878]
push edx
call fcn.00404db0
lea eax, [ebp - 0x630]
push eax
push 0x43be8c
call fcn.0040c940
add esp, 8
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x630]
mov byte [eax + 0x441370], cl
add eax, edi
cmp cl, bl
jne 0x402260
push 0x441370
mov dword [0x441780], ebx
call fcn.004023a0
mov ecx, dword [ebp - 0x878]
mov eax, dword [ecx + 4]
mov edx, dword [ebp + eax - 0x86c]
lea eax, [ebp + eax - 0x878]
and dl, 6
movsx ecx, dl
add esp, 4
neg ecx
sbb ecx, ecx
not ecx
test eax, ecx
jne 0x402227
lea esi, [ebp - 0x868]
call fcn.00405060
test eax, eax
jne 0x4022e8
mov edx, dword [ebp - 0x878]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x86c]
lea ecx, [ebp + ecx - 0x878]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x4022e2
or eax, 4
push ebx
call fcn.00401890
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [ebp - 0x810]
mov byte [ebp - 4], 1
call fcn.00404670
lea ecx, [ebp - 0x810]
push ecx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004067f0
add esp, 4
mov dword [0x44189c], ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x638], 0x10
jb 0x4021bf
mov edx, dword [ebp - 0x64c]
push edx
jmp 0x4021b7
lea eax, [ebp - 0x7b8]
push eax
lea ecx, [ebp - 0x7c8]
mov dword [ebp - 0x7b8], ebx
call fcn.00408030
push 0x43dd08
lea ecx, [ebp - 0x7c8]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.0040ed10
int3