Function at 0x401a69
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x40b9b0
push 0xffffffffffffffff
push 0x525297
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x370
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0x80
mov dword [esp + 0x20], vtable.Table_class_CString_.0
call sub.MFC42.DLL_operatornew
xor edi, edi
mov ebx, 0x1f
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 0x40
mov esi, dword [esp + 0x390]
mov eax, 1
cmp esi, edi
mov dword [esp + 0x388], edi
mov dword [esp + 0x2c], eax
mov dword [ebp + 0x1c], eax
je 0x40ba2b
push eax
mov eax, dword [esp + 0x398]
push edi
push eax
call esi
mov eax, dword [ebp + 0x30]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x14], ecx
jle 0x40bc44
jmp 0x40ba42
mov ecx, dword [esp + 0x14]
cmp ecx, dword [ebp + 0x30]
jge 0x40ba53
test ecx, ecx
jl 0x40ba53
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx + ecx*4]
jmp 0x40ba55
xor eax, eax
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x13c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x13c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..8bf
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x240]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x40bc25
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x30]
cmp eax, ecx
jge 0x40bae6
test eax, eax
jl 0x40bae6
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx + eax*4]
jmp 0x40bae8
xor eax, eax
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 4
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x550aa4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x270]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0x388], 1
je 0x40bb93
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
call fcn.004fdf08
mov dword [esp + 0x10], eax
jmp 0x40bb9b
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x388], 0
test eax, eax
je 0x40bbff
mov eax, dword [esp + 0x24]
lea esi, [ebx + 1]
cmp eax, esi
jne 0x40bbeb
lea edx, [ebx*4 + 0x104]
push edx
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov eax, dword [esp + 0x24]
mov ecx, esi
mov esi, eax
mov edi, ebx
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x30]
add esp, 8
add eax, 0x40
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
mov ebx, eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov dword [ecx + eax*4], edx
inc eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x240]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40bacf
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x40ba3e
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x390]
xor ebx, ebx
test edi, edi
mov dword [esp + 0x14], ebx
jle 0x40bdf6
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jmp 0x40bc63
mov esi, dword [esp + 0x390]
test esi, esi
je 0x40bc73
mov ecx, dword [esp + 0x394]
push edi
push ebx
push ecx
call esi
push 0x184
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
xor edx, edx
mov byte [esp + 0x388], 2
cmp eax, edx
je 0x40bcb2
cmp ebx, edi
jge 0x40bca0
cmp ebx, edx
jl 0x40bca0
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
mov edx, dword [edx]
mov ecx, eax
push edx
call fcn.00402f09
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x40bcb8
mov dword [esp + 0x10], edx
mov esi, edx
mov eax, dword [0x55e6fc]
mov ecx, esi
push eax
mov byte [esp + 0x38c], 0
call fcn.00401d9d
test eax, eax
jne 0x40bd56
test esi, esi
je 0x40bdde
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x40bd41
mov edx, dword [ebp + 0x20]
add edx, eax
lea eax, [edx*4 + 4]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
mov ebx, eax
lea ecx, [ecx*4 + 4]
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x10]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
add esp, 8
add ecx, eax
mov dword [ebp + 0x10], ebx
mov ebx, dword [esp + 0x14]
mov dword [ebp + 0x18], ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [edx + ecx*4], esi
mov eax, dword [ebp + 0x14]
inc eax
mov dword [ebp + 0x14], eax
jmp 0x40bdde
mov ecx, esi
call fcn.00402748
test eax, eax
jne 0x40bdde
test esi, esi
je 0x40bdd7
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x40bdc7
add eax, dword [ebp + 0x20]
lea edx, [eax*4 + 4]
push edx
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
mov edi, ebx
lea ecx, [eax*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x10]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
add esp, 8
add ecx, eax
mov dword [ebp + 0x10], ebx
mov ebx, dword [esp + 0x14]
mov dword [ebp + 0x18], ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [edx + ecx*4], esi
mov eax, dword [ebp + 0x14]
inc eax
mov dword [ebp + 0x14], eax
mov ecx, esi
call fcn.004018fc
mov ecx, dword [esp + 0x18]
inc ebx
add ecx, 4
cmp ebx, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
jl 0x40bc5c
mov eax, dword [ebp + 0x14]
cmp eax, 2
jl 0x40be13
push 0x40179e
push 4
push eax
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x10
mov ecx, ebp
call fcn.00401edd
xor esi, esi
mov dword [esp + 0x388], 0xffffffff
test edi, edi
jle 0x40be59
mov ebx, dword [esp + 0x20]
cmp esi, edi
jge 0x40be51
test esi, esi
jl 0x40be51
mov edi, dword [ebx]
test edi, edi
je 0x40be4d
mov ecx, edi
call sub.MFC42.DLL_CString::CString
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, dword [esp + 0x24]
inc esi
add ebx, 4
cmp esi, edi
jl 0x40be33
mov ecx, dword [esp + 0x20]
push ecx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x384]
add esp, 4
xor eax, eax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x37c
ret 8