Function at 0x46eb90
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x750
mov eax, dword [0x4c75d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x2c0
mov esi, ecx
lea ecx, [ebp - 0x5f8]
push ebx
push ecx
mov dword [ebp - 0x740], eax
mov edi, 1
mov dword [ebp - 0x5fc], ebx
call fcn.0042e03c
add esp, 0xc
cmp esi, ebx
jne 0x46ec31
push 0x104
lea edx, [ebp - 0x114]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll_strrchr]
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x21c]
push 0x104
push edx
mov byte [eax + 1], bl
call dword [sym.imp.MSVCR100.dll_strcpy_s]
push 0x4b8fd4
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_strcat_s]
add esp, 0x20
jmp 0x46ec76
mov edx, esi
mov eax, 0x104
lea ecx, [ebp - 0x114]
call fcn.004a0810
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x21c]
push 0x104
push edx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
push 0x4b8fdc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_strcat_s]
add esp, 0x18
lea ecx, [ebp - 0x73c]
push ecx
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x750], eax
cmp eax, 0xffffffff
je 0x46f05e
lea esp, [esp]
cmp edi, ebx
je 0x46f05e
push 0x3e0
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x46ecfb
push 0x104
push ebx
push esi
mov dword [esi + 0x3cc], ebx
mov dword [esi + 0x3d0], ebx
mov dword [esi + 0x3d4], ebx
mov dword [esi + 0x3d8], ebx
mov dword [esi + 0x3dc], ebx
mov dword [esi + 0x104], ebx
call fcn.0042e03c
add esp, 0xc
mov dword [esi + 0x108], 0x2c4
jmp 0x46ecfd
xor esi, esi
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x324]
push 0x104
mov edi, esi
push ecx
mov dword [ebp - 0x748], edi
call dword [sym.imp.MSVCR100.dll_strcpy_s]
lea edx, [ebp - 0x710]
push edx
lea eax, [ebp - 0x324]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_strcat_s]
add esp, 0x18
lea ecx, [ebp - 0x324]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x104], eax
cmp eax, ebx
je 0x46ed60
mov eax, esi
call fcn.0046e870
cmp eax, ebx
jl 0x46f033
cmp dword [esi + 0x3cc], ebx
je 0x46ed84
lea edx, [ebp - 0x5fc]
mov dword [ebp - 0x5fc], 0x2c4
mov eax, dword [esi + 0x3cc]
push edx
call eax
add esp, 4
mov edx, dword [ebp - 0x5f0]
mov esi, dword [ebp - 0x740]
mov ecx, dword [ebp - 0x5f4]
mov eax, dword [ebp - 0x5ec]
mov dword [ebp - 0x330], edx
mov edx, dword [esi + 4]
sub edx, dword [esi]
mov dword [ebp - 0x334], ecx
mov ecx, dword [ebp - 0x5e8]
sar edx, 2
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x328], ecx
mov dword [ebp - 0x744], ebx
mov dword [ebp - 0x74c], ebx
test edx, edx
je 0x46ef4a
mov eax, dword [esi]
mov ecx, dword [ebp - 0x74c]
mov eax, dword [eax + ecx*4]
cmp dword [eax + 0x3cc], ebx
je 0x46ee05
lea edx, [ebp - 0x5fc]
mov dword [ebp - 0x5fc], 0x2c4
mov eax, dword [eax + 0x3cc]
push edx
call eax
add esp, 4
mov eax, 0x10
lea ecx, [ebp - 0x334]
lea edx, [ebp - 0x5f4]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x46ee2c
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x46ee16
jmp 0x46ee66
movzx eax, byte [edx]
movzx esi, byte [ecx]
sub eax, esi
jne 0x46ee58
movzx eax, byte [edx + 1]
movzx esi, byte [ecx + 1]
sub eax, esi
jne 0x46ee58
movzx eax, byte [edx + 2]
movzx esi, byte [ecx + 2]
sub eax, esi
jne 0x46ee58
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
cmp eax, ebx
jne 0x46ef15
mov edx, dword [edi + 0x104]
mov esi, dword [ebp - 0x740]
push edx
mov dword [ebp - 0x744], 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x104
push ebx
push edi
mov dword [edi + 0x3cc], ebx
mov dword [edi + 0x3d0], ebx
mov dword [edi + 0x3d4], ebx
mov dword [edi + 0x3d8], ebx
mov dword [edi + 0x3dc], ebx
mov dword [edi + 0x104], ebx
call fcn.0042e03c
mov dword [edi + 0x108], 0x2c4
mov eax, dword [edi + 0x104]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x104
push ebx
push edi
mov dword [edi + 0x3cc], ebx
mov dword [edi + 0x3d0], ebx
mov dword [edi + 0x3d4], ebx
mov dword [edi + 0x3d8], ebx
mov dword [edi + 0x3dc], ebx
mov dword [edi + 0x104], ebx
call fcn.0042e03c
push edi
mov dword [edi + 0x108], 0x2c4
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 0x10
xor edi, edi
jmp 0x46ef1b
mov esi, dword [ebp - 0x740]
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
mov eax, dword [ebp - 0x74c]
inc eax
sar ecx, 2
mov dword [ebp - 0x74c], eax
cmp eax, ecx
jb 0x46edd6
mov dword [ebp - 0x748], edi
cmp dword [ebp - 0x744], ebx
jne 0x46f038
mov eax, dword [esi + 4]
lea edx, [ebp - 0x748]
cmp edx, eax
jae 0x46efd2
mov edx, dword [esi]
lea ecx, [ebp - 0x748]
cmp edx, ecx
ja 0x46efd2
mov edi, ecx
mov ecx, dword [esi + 8]
sub edi, edx
sar edi, 2
mov dword [ebp - 0x744], edi
cmp eax, ecx
jne 0x46efbe
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x46f053
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x46efbe
mov edx, ecx
shr edx, 1
mov edi, 0x3fffffff
sub edi, edx
cmp edi, ecx
jae 0x46efa4
xor ecx, ecx
jmp 0x46efa6
add ecx, edx
cmp ecx, eax
jae 0x46efac
mov ecx, eax
push ecx
call fcn.004037e0
mov esi, dword [ebp - 0x740]
mov edi, dword [ebp - 0x744]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x46efcc
mov edx, dword [esi]
mov ecx, dword [edx + edi*4]
mov dword [eax], ecx
add dword [esi + 4], 4
jmp 0x46f038
mov ecx, dword [esi + 8]
cmp eax, ecx
jne 0x46f024
mov edx, dword [esi]
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x46f053
sub ecx, edx
inc eax
sar ecx, 2
mov dword [ebp - 0x744], eax
cmp eax, ecx
jbe 0x46f024
mov eax, ecx
shr eax, 1
mov edx, 0x3fffffff
sub edx, eax
cmp edx, ecx
jae 0x46f00a
xor ecx, ecx
jmp 0x46f00c
add ecx, eax
mov eax, dword [ebp - 0x744]
cmp ecx, eax
jae 0x46f018
mov ecx, eax
push ecx
call fcn.004037e0
mov esi, dword [ebp - 0x740]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x46f02d
mov dword [eax], edi
add dword [esi + 4], 4
jmp 0x46f038
call fcn.004038d0
mov ecx, dword [ebp - 0x750]
lea eax, [ebp - 0x73c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
jmp 0x46eca0
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
mov ecx, dword [ebp - 0x740]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
sar eax, 2
pop ebx
call fcn.0042dbe7
mov esp, ebp
pop ebp
ret 4