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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e18b
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x4914f4]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x268], eax
call fcn.0042fa4e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4600d4
push 0x80004005
call fcn.00401350
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x264], eax
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x4600f5
xor eax, eax
jmp 0x46010f
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460100
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x264]
call fcn.00403340
mov edx, dword [ebp - 0x264]
mov eax, dword [edx - 0xc]
cmp eax, 2
jge 0x460146
lea eax, [edx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4603eb
cmp eax, 3
je 0x46016d
lea ecx, [eax - 1]
test ecx, ecx
js 0x4601a8
cmp ecx, eax
jg 0x4601a8
cmp word [edx + ecx*2], 0x5c
je 0x46016d
push 0x472650
lea ecx, [ebp - 0x264]
call fcn.004058c0
push 1
push 0x480050
lea ecx, [ebp - 0x264]
call fcn.00403340
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x260]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x26c], edi
cmp edi, 0xffffffff
jne 0x4601b2
lea eax, [esi - 0x10]
jmp 0x4603db
push 0x80070057
call fcn.00401350
test byte [ebp - 0x260], 0x10
je 0x46022b
push ebx
lea ecx, [ebp - 0x264]
call fcn.00405850
push 0x472650
lea ecx, [ebp - 0x264]
call fcn.004058c0
lea ecx, [ebp - 0x234]
push ecx
call fcn.004469a4
add esp, 4
push eax
lea ecx, [ebp - 0x264]
call fcn.004058c0
push 0x480048
lea ecx, [ebp - 0x264]
call fcn.00414470
push 0x480040
lea ecx, [ebp - 0x264]
call fcn.00414470
mov ecx, dword [ebp - 0x268]
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x278]
push eax
call fcn.0045ff40
lea ecx, [ebp - 0x260]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4603cb
cmp dword [ebp + 0x10], 0
je 0x4602f1
mov edx, dword [ebp - 0x260]
xor eax, eax
and dl, 0x10
cmp dl, 0x10
sete al
push 0x4754c0
lea ecx, [ebp - 0x234]
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
neg eax
push 0x480038
lea edx, [ebp - 0x234]
sbb esi, esi
push edx
neg esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
neg eax
sbb eax, eax
neg eax
test edi, edi
je 0x4602eb
test esi, esi
je 0x4602eb
test eax, eax
je 0x4602eb
push ebx
lea ecx, [ebp - 0x264]
call fcn.00405850
push 0x472650
lea ecx, [ebp - 0x264]
call fcn.004058c0
lea eax, [ebp - 0x234]
push eax
call fcn.004469a4
add esp, 4
push eax
lea ecx, [ebp - 0x264]
call fcn.004058c0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x264]
push ecx
push edx
push eax
call fcn.00460080
add esp, 0xc
mov edi, dword [ebp - 0x26c]
test byte [ebp - 0x260], 0x10
je 0x4603b5
test ebx, ebx
jne 0x460306
xor eax, eax
jmp 0x46031f
mov eax, ebx
lea edx, [eax + 2]
jmp 0x460310
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460310
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x264]
call fcn.00403400
push 1
push 0x472650
lea ecx, [ebp - 0x264]
call fcn.00403340
lea ecx, [ebp - 0x234]
push ecx
call fcn.004469a4
add esp, 4
test eax, eax
jne 0x460355
xor ecx, ecx
jmp 0x46036f
mov ecx, eax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x460360
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x264]
call fcn.00403340
push 0x480048
lea ecx, [ebp - 0x264]
call fcn.00414470
push 0x480040
lea ecx, [ebp - 0x264]
call fcn.00414470
mov ecx, dword [ebp - 0x268]
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x278]
push eax
call fcn.0045ff40
lea ecx, [ebp - 0x260]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x460241
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov dword [ebp - 4], ecx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4603f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.0044665f
mov esp, ebp
pop ebp
ret