Function at 0x45e750
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47085f
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push esi
push edi
mov eax, dword [0x4f8028]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
push eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x2f4], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x2f0], 1
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov ecx, dword [eax]
mov esi, dword [esp + 0x84]
push ecx
push 0x478908
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_last_of_wchar_t_const___unsigned_int_const]
add esi, 0xffffffff
cmp eax, esi
je 0x45e7fd
push 0x478908
lea ecx, [esp + 0x74]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push 0x24c
lea edx, [esp + 0x94]
push edi
push edx
mov dword [esp + 0x98], edi
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0x54]
mov byte [esp + 0x2f0], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2f4], 3
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push 0x477724
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x45e86b
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x8c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov eax, 1
je 0x45e97d
lea ebx, [ebx]
cmp eax, edi
je 0x45e97d
mov ecx, 0x478510
lea eax, [esp + 0xb8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45e8ca
cmp dx, di
je 0x45e8c6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45e8ca
add eax, 4
add ecx, 4
cmp dx, di
jne 0x45e8a4
xor eax, eax
jmp 0x45e8cf
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x45e969
mov ecx, 0x478514
lea eax, [esp + 0xb8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45e909
cmp dx, di
je 0x45e905
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45e909
add eax, 4
add ecx, 4
cmp dx, di
jne 0x45e8e3
xor eax, eax
jmp 0x45e90e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x45e969
lea ecx, [esp + 0x54]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::clear_void_]
test byte [esp + 0x8c], 0x10
je 0x45e955
push 0x478908
lea ecx, [esp + 0x58]
call dword [0x474790]
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea eax, [esp + 0x54]
push eax
lea esi, [esp + 0x24]
call fcn.0045cd90
lea ecx, [esp + 0x8c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x45e890
lea edx, [esp + 0x8c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x45e890
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x28]
xor ebx, ebx
test esi, esi
je 0x45e9f3
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x45e9d5
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + esi + 0x14]
mov edx, dword [esp + 0x1c]
add ebx, 1
lea ecx, [edx + ecx*2 + 2]
add eax, 0x1c
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
jmp 0x45e996
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x45e9f3
add dword [esp + 0x1c], 2
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
mov edx, dword [esp + 0x1c]
cmp eax, edx
jae 0x45ea77
mov dword [ecx], edx
lea ecx, [esp + 0x54]
mov byte [esp + 0x2f0], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x38]
mov byte [esp + 0x2f0], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x70]
mov byte [esp + 0x2f0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [esp + 0x2f0], 0xffffffff
mov esi, dword [esp + 0x24]
test esi, esi
je 0x45ea70
mov edi, dword [esp + 0x28]
cmp esi, edi
je 0x45ea67
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x45ea54
mov esi, dword [esp + 0x24]
push esi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
xor al, al
jmp 0x45ebee
mov ebx, dword [esp + 0x14]
push eax
push 0
push ebx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [esp + 0x18], ebx
xor ebx, ebx
mov dword [esp + 0x14], ebx
test esi, esi
je 0x45eb6f
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x45eb6f
test esi, esi
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + esi + 0x14]
mov dword [esp + 0x30], edx
je 0x45eae1
sub edi, esi
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x45eaef
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + esi + 0x18], 8
jb 0x45eafc
mov esi, dword [ecx + esi + 4]
jmp 0x45eb00
lea esi, [ecx + esi + 4]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
lea ecx, [eax + eax + 2]
push ecx
push esi
push edx
call sub.ntdll.dll_memcpy
mov esi, dword [esp + 0x30]
add esp, 0xc
test esi, esi
je 0x45eb3e
mov edi, dword [esp + 0x28]
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x45eb4c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + esi + 0x14]
mov edx, dword [esp + 0x18]
add ebx, 1
lea ecx, [edx + ecx*2 + 2]
add eax, 0x1c
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jmp 0x45ea91
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x54]
mov dword [eax], edx
mov byte [esp + 0x2f0], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x38]
mov byte [esp + 0x2f0], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x70]
mov byte [esp + 0x2f0], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [esp + 0x2f0], 0xffffffff
mov esi, dword [esp + 0x24]
test esi, esi
je 0x45ebec
mov edi, dword [esp + 0x28]
cmp esi, edi
je 0x45ebe3
lea ebx, [ebx]
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x45ebd0
mov esi, dword [esp + 0x24]
push esi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.0046d6fd
mov esp, ebp
pop ebp
ret 0xc