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

Disassembly:
push 0xffffffffffffffff
push 0x402785
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b8
push edi
lea eax, [esp + 0x18c]
push 0x12c
push eax
mov dword [esp + 0x2cc], 1
mov byte [esp + 0xf], 1
call dword [sym.imp.MSVCRT.dll__getcwd]
add esp, 8
lea ecx, [esp + 0x18c]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
push 0x40402c
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c8], 2
call sub.MFC42.DLL_CString::CString
push eax
lea edx, [esp + 0x2d0]
lea eax, [esp + 0x10]
push edx
push eax
mov byte [esp + 0x2d0], 3
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x2d0]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x2d0], 4
call sub.MFC42.DLL_operator
mov edx, dword [eax]
lea ecx, [esp + 0x4c]
push ecx
push edx
mov byte [esp + 0x2cc], 5
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], edi
mov byte [esp + 0x2c4], 4
call fcn.004022a6
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c4], 3
call fcn.004022a6
lea ecx, [esp + 8]
mov byte [esp + 0x2c4], 2
call fcn.004022a6
xor eax, eax
cmp edi, 0xffffffff
sete al
test al, al
jne 0x401b16
push esi
push ebp
mov ebp, dword [esp + 0x2dc]
push ebx
lea eax, [esp + 0x84]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::CString
push 0x404048
lea ecx, [esp + 0x54]
mov byte [esp + 0x2d4], 6
call sub.MFC42.DLL_CString::CString
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push ecx
push edx
mov byte [esp + 0x2d8], 7
call esi
add esp, 8
neg eax
sbb eax, eax
neg eax
test al, al
je 0x401828
push 0x404044
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x2d8], 8
call esi
mov ebx, eax
add esp, 8
neg ebx
sbb ebx, ebx
lea ecx, [esp + 0x38]
neg ebx
mov byte [esp + 0x2d0], 7
call fcn.004022a6
test bl, bl
je 0x401828
mov bl, 1
jmp 0x40182a
xor bl, bl
lea ecx, [esp + 0x50]
mov byte [esp + 0x2d0], 6
call fcn.004022a6
test bl, bl
je 0x401ae7
push 0x40402c
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString
push eax
lea edx, [esp + 0x2dc]
lea eax, [esp + 0x34]
push edx
push eax
mov byte [esp + 0x2dc], 9
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x2dc], 0xa
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x2d0], 0xd
call fcn.004022a6
lea ecx, [esp + 0x48]
mov byte [esp + 0x2d0], 0xc
call fcn.004022a6
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401ad6
push 0x40402c
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString
mov esi, eax
push str.File
lea ecx, [esp + 0x40]
mov byte [esp + 0x2d4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
lea edx, [esp + 0x34]
push ecx
push eax
push edx
mov byte [esp + 0x2dc], 0xf
call sub.MFC42.DLL_operator
push esi
push eax
lea eax, [esp + 0x34]
mov byte [esp + 0x2d8], 0x10
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
push eax
push edx
mov byte [esp + 0x2dc], 0x11
call sub.MFC42.DLL_operator
mov dword [esp + 0x40], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov esi, ecx
mov byte [esp + 0x2d0], 0x12
mov dword [esp + 0x54], esi
lea ebx, [esi + 1]
test ebx, ebx
jne 0x40196d
test eax, eax
je 0x401960
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov eax, dword [ebp + 4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 4], 0
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
jmp 0x401a68
test eax, eax
jne 0x401996
lea eax, [ebx*4]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp + 4], eax
push ebx
push eax
call sub.MFC42.DLL_ConstructElements
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x401a68
mov edi, dword [ebp + 0xc]
cmp ebx, edi
jg 0x4019cd
cmp ecx, ebx
jge 0x4019b7
mov edx, ebx
lea eax, [eax + ecx*4]
sub edx, ecx
push edx
push eax
call sub.MFC42.DLL_ConstructElements
mov dword [ebp + 8], ebx
jmp 0x401a68
jle 0x4019c5
sub ecx, ebx
push ecx
lea ecx, [eax + ebx*4]
push ecx
call sub.MFC42.DLL_DestructElements
mov dword [ebp + 8], ebx
jmp 0x401a68
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4019f7
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4019eb
mov eax, 4
jmp 0x4019f7
cmp eax, 0x400
jle 0x4019f7
mov eax, 0x400
add eax, edi
cmp ebx, eax
mov dword [esp + 0x18], eax
jl 0x401a05
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x18]
lea eax, [edx*4]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x24], eax
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call sub.MFC42.DLL_ConstructElements
mov eax, dword [ebp + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x58]
add esp, 4
mov dword [ebp + 4], ecx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edx
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x40]
push eax
lea ecx, [ecx + esi*4]
call fcn.004022ac
lea ecx, [esp + 0x28]
mov byte [esp + 0x2d0], 0x11
call fcn.004022a6
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2d0], 0x10
call fcn.004022a6
lea ecx, [esp + 0x34]
mov byte [esp + 0x2d0], 0xf
call fcn.004022a6
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2d0], 0xe
call fcn.004022a6
lea ecx, [esp + 0x44]
mov byte [esp + 0x2d0], 0xc
call fcn.004022a6
mov edi, dword [esp + 0x4c]
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2d0], 6
call fcn.004022a6
lea edx, [esp + 0x58]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebx, eax
lea ecx, [esp + 0x14]
neg ebx
sbb ebx, ebx
mov byte [esp + 0x2d0], 2
inc ebx
call fcn.004022a6
test bl, bl
je 0x401798
pop ebx
pop ebp
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c4], 1
call fcn.004022a6
lea ecx, [esp + 0x2cc]
mov byte [esp + 0x2c4], 0
call fcn.004022a6
lea ecx, [esp + 0x2d0]
mov dword [esp + 0x2c4], 0xffffffff
call fcn.004022a6
mov ecx, dword [esp + 0x2bc]
mov al, byte [esp + 7]
mov dword fs:[0], ecx
pop edi
add esp, 0x2c4
ret 0xc