Function at 0x462950
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498fef
mov eax, dword fs:[0]
push eax
mov eax, 0x22c4
call fcn.00497d20
mov eax, dword [0x4cc99c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x22d0], eax
mov dword [ebp - 0x14], edi
cmp esi, edi
jne 0x4629bb
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], edi
push edi
mov word [ebx], cx
push 0x4ab248
mov ecx, ebx
call fcn.004027c0
jmp 0x462df3
test byte [0x4ceff0], 1
jne 0x462a0b
or dword [0x4ceff0], 1
push edi
xor edx, edx
push 0x4ab248
mov ecx, 0x4cefd4
mov dword [ebp - 4], edi
mov dword [0x4cefe8], 7
mov dword [0x4cefe4], edi
mov word [0x4cefd4], dx
call fcn.004027c0
push 0x4a29f0
call fcn.00497967
add esp, 4
mov dword [ebp - 4], 0xffffffff
push esi
push 0x4ab4fc
lea eax, [ebp - 0x828]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
push 0x7fe
lea edx, [ebp - 0x1026]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x1028], cx
call sub.MSVCR100.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x1028]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
movzx edx, word [ebp - 0x1028]
push edx
lea eax, [ebp - 0x18]
push str._c:_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x1028]
push ecx
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
test eax, eax
je 0x462a98
push 0x4adfcc
lea eax, [ebp - 0x1028]
push eax
call esi
push 0x4ae910
lea ecx, [ebp - 0x1028]
push ecx
call esi
lea edx, [ebp - 0x22cc]
push edx
lea eax, [ebp - 0x1028]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x46299a
cmp word [ebp - 0x22a0], 0x2e
jne 0x462af3
mov ax, word [ebp - 0x229e]
cmp ax, di
je 0x462dc7
cmp ax, 0x2e
jne 0x462af3
cmp word [ebp - 0x229c], di
je 0x462dc7
test byte [ebp - 0x22cc], 0x10
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
je 0x462bce
movzx edx, word [ebp - 0x828]
push edx
lea eax, [ebp - 0x28]
push str._c:_
push eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x828]
push ecx
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
lea eax, [ebp - 0x22a0]
lea ecx, [ebp - 0x828]
push eax
lea edx, [ebp - 0x1828]
push ecx
jne 0x462b4c
push 0x4ae918
jmp 0x462b51
push str._s_s
push edx
call esi
mov eax, dword [ebp - 0x22d0]
add esp, 0x10
push eax
lea ecx, [ebp - 0x1828]
push ecx
lea edx, [ebp - 0x207c]
push edx
call fcn.00462950
add esp, 0xc
mov eax, dword [ebp - 0x207c]
mov esi, 8
mov dword [ebp - 4], 1
cmp dword [ebp - 0x2068], esi
jae 0x462b94
lea eax, [ebp - 0x207c]
push edi
push eax
call dword [sym.imp.MSVCR100.dll__waccess]
add esp, 8
test eax, eax
je 0x462e11
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2068], esi
jb 0x462dc7
mov eax, dword [ebp - 0x207c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x462dc7
movzx ecx, word [ebp - 0x828]
push ecx
lea edx, [ebp - 0x20]
push str._c:_
push edx
call esi
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [ebp - 0x22a0]
test eax, eax
push edx
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x2028]
push eax
jne 0x462c14
push 0x4ae918
jmp 0x462c19
push str._s_s
push ecx
call esi
add esp, 0x10
xor edx, edx
mov esi, 7
lea eax, [ebp - 0x828]
mov word [ebp - 0x2044], dx
mov dword [ebp - 0x2030], esi
mov dword [ebp - 0x2034], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x462c42
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x2044]
call fcn.004027c0
push 1
push 0x4adfcc
lea ecx, [ebp - 0x2044]
mov dword [ebp - 4], 2
call fcn.004026a0
lea eax, [ebp - 0x22a0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x462c86
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x22a0]
push ecx
lea ecx, [ebp - 0x2044]
call fcn.004026a0
mov ecx, dword [ebp - 0x22d0]
lea eax, [ebp - 0x22a0]
cmp ecx, edi
jne 0x462d60
xor edx, edx
mov word [ebp - 0x2060], dx
mov dword [ebp - 0x204c], esi
mov dword [ebp - 0x2050], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x462cd4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x22a0]
push eax
lea ecx, [ebp - 0x2060]
call fcn.004027c0
push 4
push 0xffffffffffffffff
push 0x4a612c
lea ecx, [ebp - 0x2060]
mov byte [ebp - 4], 3
call fcn.00408640
cmp eax, 0xffffffff
jg 0x462d27
push 4
push 0xffffffffffffffff
push str..EXE
lea ecx, [ebp - 0x2060]
call fcn.00408640
cmp eax, edi
jg 0x462e3e
cmp dword [ebp - 0x204c], 8
jb 0x462d47
mov ecx, dword [ebp - 0x2060]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edx, edx
mov dword [ebp - 0x204c], esi
mov dword [ebp - 0x2050], edi
mov word [ebp - 0x2060], dx
jmp 0x462d93
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x462d86
cmp dx, di
je 0x462d82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x462d86
add eax, 4
add ecx, 4
cmp dx, di
jne 0x462d60
xor eax, eax
jmp 0x462d8b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x462e79
cmp dword [ebp - 0x2030], 8
mov dword [ebp - 4], 0xffffffff
jb 0x462db2
mov eax, dword [ebp - 0x2044]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x2030], esi
mov dword [ebp - 0x2034], edi
mov word [ebp - 0x2044], cx
mov esi, dword [ebp - 0x14]
lea edx, [ebp - 0x22cc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x462ac6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x4cefd4
mov ecx, ebx
call fcn.004083d0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497792
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x207c]
push eax
mov ecx, 0x4cefd4
call fcn.00402530
push 0x4cefd4
mov ecx, ebx
call fcn.004083d0
lea ecx, [ebp - 0x207c]
call fcn.004024d0
jmp 0x462df3
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x2044]
push ecx
mov ecx, 0x4cefd4
call fcn.00402530
push 0x4cefd4
mov ecx, ebx
call fcn.004083d0
lea ecx, [ebp - 0x2060]
call fcn.004024d0
lea ecx, [ebp - 0x2044]
call fcn.004024d0
jmp 0x462df3
push 0xffffffffffffffff
push edi
lea edx, [ebp - 0x2044]
push edx
mov ecx, 0x4cefd4
call fcn.00402530
push 0x4cefd4
mov ecx, ebx
call fcn.004083d0
lea ecx, [ebp - 0x2044]
call fcn.004024d0
jmp 0x462df3