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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x41d004]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov edx, edi
mov dword [esp + 0x18], ebx
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406c60
sub edx, esi
xor ecx, ecx
sar edx, 1
lea eax, [edx + 1]
mov edx, 2
lea esi, [eax + 3]
mov dword [esp + 0x14], eax
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0xc], eax
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [esp + 0xc]
mov edx, edi
mov dword [esp + 0x10], eax
sub esi, edi
nop dword [eax]
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], cx
test cx, cx
jne 0x406cd0
mov edx, eax
mov ecx, edi
sub edx, edi
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x406cf0
mov esi, dword [esp + 0x10]
lea ecx, [esi - 2]
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x406d10
mov eax, dword [0x41b020]
mov dword [ecx], eax
mov eax, dword [0x41b024]
mov dword [ecx + 4], eax
mov ecx, dword [ebx]
push edi
call fcn.00406780
test eax, eax
je 0x406d4c
push 0
mov ecx, ebx
call fcn.00407160
mov ecx, dword [ebx]
push edi
call fcn.00406780
test eax, eax
jne 0x406d37
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x1c], ebx
cmp ebx, 0xffffffff
je 0x406eaf
nop word [eax + eax]
mov ecx, dword [esp + 0x20]
and cl, 0x12
cmp cl, 0x10
jne 0x406e94
lea eax, [esp + 0x4c]
push 0x41b028
push eax
call fcn.0040b4ff
add esp, 8
test eax, eax
je 0x406e94
lea eax, [esp + 0x4c]
push 0x41b02c
push eax
call fcn.0040b4ff
add esp, 8
test eax, eax
je 0x406e94
xor esi, esi
cmp dword [0x427358], esi
jbe 0x406de5
mov edi, 0x42735c
lea eax, [esp + 0x4c]
push edi
push eax
call fcn.0040b4ff
add esp, 8
test eax, eax
je 0x406e94
inc esi
add edi, 0x40
cmp esi, dword [0x427358]
jb 0x406dc3
lea ecx, [esp + 0x4c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406df0
mov eax, dword [esp + 0x14]
sub ecx, edx
sar ecx, 1
inc eax
add eax, ecx
mov edx, 2
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0xc]
mov ebx, eax
mov esi, ebx
sub esi, ecx
movzx edx, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], dx
test dx, dx
jne 0x406e30
lea edx, [esp + 0x4c]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406e46
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406e56
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 2]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x406e73
mov eax, dword [0x41b034]
mov ecx, dword [esp + 0x18]
push ebx
mov dword [edi], eax
call fcn.00406c30
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406d70
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x406ecb
push eax
push 0
call ebx
push eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x406edb
push eax
push 0
call ebx
push eax
call esi
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407f82
mov esp, ebp
pop ebp
ret 4