Function at 0x416dc0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432174
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x442018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x2bc], esi
push 8
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, esi
je 0x417182
mov dword [ebp - 0x2bc], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x2bc]
lea ecx, [ebp - 0x2bc]
mov dword [edx], ecx
mov dword [ebp - 0x2b8], esi
mov dword [ebp - 0x2b4], esi
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2ac], esi
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x38]
cmp eax, esi
je 0x416e84
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x416e71
push str.invalid_string_position
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xout_of_range_char_const__]
cmp dword [ebp + 0x3c], 8
mov eax, dword [ebp + 0x28]
jae 0x416e7d
lea eax, [ebp + 0x28]
cmp word [eax + ecx*2], 0x5c
je 0x416e93
push 1
mov eax, 0x435154
lea ecx, [ebp + 0x28]
call fcn.00404b10
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], esi
mov word [ebp - 0x30], ax
lea ecx, [ebp + 0x28]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ebx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.00419770
add esp, 8
mov edi, eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.00403820
mov ebx, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x38], ebx
jb 0x416ee3
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor esi, esi
push 0x24c
lea ecx, [ebp - 0x298]
push esi
push ecx
mov dword [ebp - 0x29c], esi
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x30]
add esp, 0xc
cmp dword [ebp - 0x1c], ebx
jae 0x416f0b
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x29c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2cc], eax
cmp eax, 0xffffffff
jne 0x416fd0
mov eax, dword [ebp - 0x2a0]
push eax
lea edi, [ebp - 0x2bc]
call fcn.00418b40
cmp dword [ebp - 0x1c], ebx
jb 0x416f4c
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x20], esi
xor edx, edx
lea esi, [ebp - 0x2bc]
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], dx
call fcn.00406ac0
mov eax, dword [ebp - 0x2bc]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
push eax
call esi
xor edi, edi
add esp, 4
mov dword [ebp - 0x2bc], edi
cmp dword [ebp + 0x20], ebx
jb 0x416f8f
mov ecx, dword [ebp + 0xc]
push ecx
call esi
add esp, 4
xor edx, edx
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], edi
mov word [ebp + 0xc], dx
cmp dword [ebp + 0x3c], ebx
jb 0x416fad
mov eax, dword [ebp + 0x28]
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x2a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042ef46
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x29c], 0x10
jne 0x41709e
lea ecx, [ebp - 0x270]
push ecx
lea edx, [ebp + 0x28]
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.0040ed10
add esp, 0xc
mov edi, eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2ac]
mov eax, dword [ebp - 0x2b4]
inc ecx
cmp eax, ecx
ja 0x41701c
lea ebx, [ebp - 0x2bc]
call fcn.004061a0
mov eax, dword [ebp - 0x2b4]
mov esi, dword [ebp - 0x2ac]
add esi, dword [ebp - 0x2b0]
cmp eax, esi
ja 0x41702e
sub esi, eax
mov edx, dword [ebp - 0x2b8]
cmp dword [edx + esi*4], 0
jne 0x417056
push 0x1c
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x41714a
mov ecx, dword [ebp - 0x2b8]
mov dword [ecx + esi*4], eax
mov edx, dword [ebp - 0x2b8]
mov esi, dword [edx + esi*4]
mov ebx, 7
mov byte [ebp - 4], bl
test esi, esi
je 0x41707f
xor eax, eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], 0
mov word [esi], ax
call fcn.00403820
inc dword [ebp - 0x2ac]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x38], 8
jb 0x4170a3
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x4170a3
mov ebx, 7
mov esi, dword [ebp - 0x2cc]
lea edx, [ebp - 0x29c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416fd0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x2a0]
push edx
lea edi, [ebp - 0x2bc]
call fcn.00418b40
cmp dword [ebp - 0x1c], 8
jb 0x4170eb
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
xor edi, edi
lea esi, [ebp - 0x2bc]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], cx
call fcn.00406ac0
mov edx, dword [ebp - 0x2bc]
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
push edx
call esi
add esp, 4
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x2bc], edi
jb 0x41712b
mov eax, dword [ebp + 0xc]
push eax
call esi
add esp, 4
xor ecx, ecx
cmp dword [ebp + 0x3c], 8
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x1c], edi
mov word [ebp + 0xc], cx
jb 0x416fad
mov edx, dword [ebp + 0x28]
push edx
jmp 0x416fa8
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2a4], 0
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x43a8a8
lea ecx, [ebp - 0x2c8]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 0x2a4], esi
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x43a8a8
lea ecx, [ebp - 0x2c8]
push ecx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3