Function at 0x418000
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x475a68
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x490018]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
mov eax, dword [0x490018]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
call dword [0x476410]
mov dword [esp + 0x278], 0
push 0x2906
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::LoadStringW]
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0xc]
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov dword [esp + 0x278], 0xffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [edi + 0x38]
mov edx, dword [eax + 8]
sub edx, dword [eax + 4]
xor esi, esi
sar edx, 2
mov dword [esp + 0x18], esi
test edx, edx
jbe 0x41827a
lea ecx, [ecx]
mov eax, dword [eax + 4]
lea ecx, [esi*4]
add eax, ecx
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0xffffffff
je 0x4182a5
lea esp, [esp]
mov ecx, 0x47d59c
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418126
test dx, dx
je 0x418122
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418126
add eax, 4
add ecx, 4
test dx, dx
jne 0x418100
xor eax, eax
jmp 0x41812b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x418246
mov ecx, 0x47d580
lea eax, [esp + 0x48]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418166
test dx, dx
je 0x418162
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418166
add eax, 4
add ecx, 4
test dx, dx
jne 0x418140
xor eax, eax
jmp 0x41816b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x418246
test byte [esp + 0x1c], 0x10
jne 0x418246
mov edx, dword [edi + 0x38]
mov eax, dword [edx + 4]
lea ecx, [esi*4]
add eax, ecx
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov dword [esp + 0x278], 1
lea esi, [esp + 0x10]
call fcn.00401a10
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4181d4
dec eax
push eax
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::operator__]
cmp ax, 0x5c
je 0x4181d4
push 0x47d53c
mov ecx, esi
call dword [0x476390]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x14]
call dword [0x476390]
mov ecx, dword [esp + 0x10]
push edi
mov esi, ecx
call fcn.004178f0
mov ebx, eax
push esi
test bl, 1
je 0x418213
push 0x4e6f
call fcn.00403e30
mov ecx, dword [edi + 0x38]
add esp, 8
push edi
mov edx, esi
call fcn.0041aad0
mov ebx, eax
jmp 0x41821c
lea ecx, [edi + 0x50]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov edx, ebx
not edx
test dl, 1
jne 0x4182bf
mov dword [esp + 0x278], 0xffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4180f0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
inc esi
sar ecx, 2
mov dword [esp + 0x18], esi
cmp esi, ecx
jb 0x4180c0
mov eax, 1
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00428cb4
add esp, 0x270
ret
mov edx, dword [edi + 0x38]
mov eax, dword [edx + 4]
lea ecx, [eax + esi*4]
push ecx
lea ecx, [edi + 0x50]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov eax, 0x6403ef00
jmp 0x41827f
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x278], 0xffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, ebx
jmp 0x41827f