Function at 0x418bf0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c6e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
cmp eax, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], 1
mov dword [ebp - 4], edi
je 0x4190cd
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x4190cd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x2000
push 8
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x418cb4
push 0x18
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, edi
je 0x418ca1
push 0x428094
push 0x37d
push 8
mov ecx, eax
call fcn.00417d40
jmp 0x418ca3
xor eax, eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push 0x423830
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0x250
push 8
call esi
push eax
call ebx
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x18], esi
jne 0x418cff
push 0x18
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, edi
je 0x418cec
push 0x428094
push 0x37e
push 8
mov ecx, eax
call fcn.00417d40
jmp 0x418cee
xor eax, eax
lea ecx, [ebp - 0x40]
push 0x423830
push ecx
mov dword [ebp - 0x40], eax
call sub.MSVCRT.dll__CxxThrowException
push 0x200000
push 8
mov dword [ebp - 0x1c], 0x100000
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x2c], ebx
jne 0x418d59
push 0x18
call sub.MFC42u.DLL_operatornew
add esp, 4
test eax, eax
je 0x418d46
push 0x428094
push 0x381
push 8
mov ecx, eax
call fcn.00417d40
jmp 0x418d48
xor eax, eax
lea edx, [ebp - 0x44]
push 0x423830
push edx
mov dword [ebp - 0x44], eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
push 0xfff
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x418d9f
mov edx, ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [ebp - 0x14]
add esp, 4
mov word [ecx + eax*2 - 2], 0
jmp 0x418d9f
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
push 0x4280dc
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
mov eax, dword [ebp - 0x24]
add esp, 8
cmp eax, 0xffffffff
mov dword [ebp + 8], 1
je 0x418dc7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x14]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
jne 0x418e29
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x418dec
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x41902d
push 0x18
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x418e16
push 0x428094
push 0x399
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00417d40
jmp 0x418e18
xor eax, eax
lea edx, [ebp - 0x48]
push 0x423830
push edx
mov dword [ebp - 0x48], eax
call sub.MSVCRT.dll__CxxThrowException
mov dword [ebp - 0x30], 0
test byte [esi], 0x10
je 0x418fe7
lea eax, [esi + 0x2c]
push 0x426f90
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x41901a
mov eax, dword [ebp - 0x34]
push 0x426f88
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x41901a
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov esi, dword [ebp - 0x1c]
lea edx, [eax + edi + 3]
add esp, 4
cmp edx, esi
jbe 0x418f9c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x418ea3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [esi + esi]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x418ef3
push 0x18
call sub.MFC42u.DLL_operatornew
add esp, 4
test eax, eax
je 0x418ee0
push 0x428094
push 0x3b0
push 8
mov ecx, eax
call fcn.00417d40
jmp 0x418ee2
xor eax, eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push 0x423830
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
add ecx, ecx
mov esi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
je 0x418f1f
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + eax + 0x200000]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x2c], ebx
jne 0x418f78
push 0x18
call sub.MFC42u.DLL_operatornew
add esp, 4
test eax, eax
je 0x418f65
push 0x428094
push 0x3b3
push 8
mov ecx, eax
call fcn.00417d40
jmp 0x418f67
xor eax, eax
lea edx, [ebp - 0x50]
push 0x423830
push edx
mov dword [ebp - 0x50], eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov edi, ebx
lea ecx, [eax + eax]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add eax, 0x100000
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x418fba
push 0x4280d8
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
inc edi
push 0x426124
push ebx
call dword [sym.imp.MSVCRT.dll_wcscat]
mov eax, dword [ebp - 0x18]
lea esi, [eax + 0x2c]
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_wcscat]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
lea edi, [edi + eax + 1]
add esp, 0x14
mov dword [ebp - 0x28], edi
jmp 0x419017
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
xor ecx, ecx
xor esi, esi
or ecx, eax
mov eax, dword [ebp - 0x60]
or edx, esi
mov esi, dword [ebp - 0x5c]
add eax, ecx
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x64]
adc esi, edx
add ecx, 1
adc eax, 0
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], eax
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418e30
test edi, edi
je 0x4190a7
mov esi, dword [ebp - 0x14]
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_wcsrchr]
mov word [eax], 0
mov eax, dword [ebp + 8]
add esp, 8
test eax, eax
je 0x41905d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
mov word [eax], 0
cmp word [ebx + edi*2 - 2], 0x7c
jne 0x419077
mov word [ebx + edi*2 - 2], 0
dec edi
je 0x4190a7
mov edx, dword [ebp - 0x14]
push 0x5c
push edx
jmp 0x41904f
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
mov esi, eax
mov eax, dword [ebp - 0x14]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x14
sub edi, eax
mov dword [ebp - 0x28], edi
mov word [esi], 0
jne 0x418d9c
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4190b9
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41911d
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x41911d
push 0x18
call sub.MFC42u.DLL_operatornew
add esp, 4
cmp eax, edi
je 0x4190e6
push 0x57
mov ecx, eax
call fcn.00417bf0
jmp 0x4190e8
xor eax, eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push 0x423830
push eax
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp - 0x58]
push 2
mov ecx, esi
call fcn.00418150
test esi, esi
mov dword [ebp - 0x38], eax
je 0x419114
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, 0x41911a
ret
test ebx, ebx
je 0x419137
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
jmp 0x419143
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x419152
push eax
push 0
call esi
push eax
call edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x419161
push eax
push 0
call esi
push eax
call edi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x419170
push eax
push 0
call esi
push eax
call edi
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x41917f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x38]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10