Function at 0x40c9b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x410e39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4a4
mov al, byte [esp + 3]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x24], ebp
mov byte [esp + 0x14], al
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x4d0]
mov edx, dword [esp + 0x4c8]
push ecx
push edx
lea eax, [esp + 0x2b4]
mov ebx, 1
push str._s_s
push eax
mov dword [esp + 0x4cc], ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x2ac]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
jne 0x40cabe
mov esi, dword [esp + 0x4c4]
mov ecx, dword [esp + 0x18]
mov al, byte [esp + 0x14]
cmp ecx, ebp
mov byte [esi], al
jne 0x40ca54
xor eax, eax
jmp 0x40ca5d
mov eax, dword [esp + 0x1c]
sub eax, ecx
sar eax, 4
cmp eax, ebp
jge 0x40ca63
xor eax, eax
shl eax, 4
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [esi + 4], eax
push eax
push ecx
push edx
mov ecx, esi
call fcn.00403270
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
cmp edi, eax
mov byte [esp + 0x4bc], 0
mov ebp, eax
je 0x40cab8
push 0
mov ecx, edi
call fcn.004035a0
add edi, 0x10
cmp edi, ebp
jne 0x40caa4
mov edi, dword [esp + 0x18]
push edi
jmp 0x40ccfd
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
mov eax, dword [esp + 0x4cc]
cmp eax, ebx
jne 0x40cb39
test byte [esp + 0x5c], 0x10
jne 0x40cc6b
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea ecx, [esp + 0x88]
push ecx
call edi
add esp, 4
lea edx, [esp + 0x88]
lea ecx, [esp + 0x4c]
push eax
push edx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x4c]
push eax
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c4], 2
call fcn.0040cea0
mov byte [esp + 0x4bc], bl
push ebx
lea ecx, [esp + 0x50]
jmp 0x40cc65
cmp eax, 2
jne 0x40cbe1
test byte [esp + 0x5c], 0x10
je 0x40cc6b
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcmpW]
lea edx, [esp + 0x88]
push edx
push 0x415c48
call esi
test eax, eax
je 0x40cc6b
lea eax, [esp + 0x88]
push eax
push 0x415c40
call esi
test eax, eax
je 0x40cc6b
mov cl, byte [esp + 0x13]
push ebp
mov byte [esp + 0x40], cl
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea edx, [esp + 0x88]
push edx
call edi
add esp, 4
lea ecx, [esp + 0x3c]
push eax
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push ecx
push ebx
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c8], 3
call fcn.0040d340
mov byte [esp + 0x4bc], bl
push ebx
lea ecx, [esp + 0x40]
jmp 0x40cc65
cmp eax, 3
jne 0x40cc6b
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
lea ecx, [esp + 0x88]
push ecx
call edi
add esp, 4
mov esi, eax
lea ecx, [esp + 0x2c]
push ebx
push esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
test al, al
je 0x40cc3d
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x88]
push esi
push edx
push eax
call fcn.00403090
add esp, 0xc
lea ecx, [esp + 0x2c]
push esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Eos_unsigned_int_]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push ebx
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c8], 4
call fcn.0040d340
mov byte [esp + 0x4bc], bl
push ebx
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40cac4
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov esi, dword [esp + 0x4c4]
mov cl, byte [esp + 0x14]
mov byte [esi], cl
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
jne 0x40cca3
xor eax, eax
jmp 0x40ccac
mov eax, dword [esp + 0x1c]
sub eax, ecx
sar eax, 4
cmp eax, ebp
jge 0x40ccb2
xor eax, eax
shl eax, 4
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x20]
add esp, 4
mov dword [esi + 4], eax
mov ecx, esi
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.00403270
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x1c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x4c4], 0
call fcn.00403220
mov eax, dword [esp + 0x18]
push eax
call fcn.00410178
mov ecx, dword [esp + 0x4b8]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4b0
ret