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

Disassembly:
push 0xffffffffffffffff
push 0x45dd07
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x491104]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x491104]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28c]
call fcn.0040b720
push esi
lea ecx, [esp + 0x18]
call fcn.00406730
xor ebx, ebx
mov dword [esp + 0x284], ebx
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x40b524
push 0x104
lea ecx, [esp + 0x18]
call fcn.00406c20
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00442d0b
add esp, 8
cmp eax, ebx
jl 0x40b710
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x40b710
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push 0x46b8e4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00406150
add esp, 0xc
mov byte [esp + 0x284], 1
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov byte [esp + 0x284], bl
lea ecx, [esp + 0x20]
call fcn.00406ed0
cmp edi, 0xffffffff
je 0x40b6d4
mov ebp, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
lea esp, [esp]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x20]
call fcn.00406e00
mov byte [esp + 0x284], 2
mov esi, dword [esp + 0x1c]
mov ecx, 0x46b8ec
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b5f7
cmp dx, bx
je 0x40b5f3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b5f7
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40b5d1
xor eax, eax
jmp 0x40b5fc
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40b692
mov ecx, 0x46b8f0
mov eax, esi
jmp 0x40b610
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b636
cmp dx, bx
je 0x40b632
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b636
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40b610
xor eax, eax
jmp 0x40b63b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40b692
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.004060a0
add esp, 0xc
mov byte [esp + 0x284], 3
mov ecx, dword [esp + 0x18]
push ecx
call ebp
test eax, eax
je 0x40b678
lea edx, [esp + 0x18]
push edx
call fcn.0040b4a0
add esp, 4
jmp 0x40b681
lea esi, [esp + 0x18]
call fcn.0040b720
mov byte [esp + 0x284], 2
lea ecx, [esp + 0x18]
call fcn.00406ed0
mov byte [esp + 0x284], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b6b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b5b0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x284], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00406ed0
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00442851
add esp, 0x274
ret
push 0x80070057
call fcn.00406f30
int3