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

Disassembly:
push 0xffffffffffffffff
push 0x47c87c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x878
mov eax, dword [0x4a8ae4]
xor eax, esp
push ebx
push ebp
push esi
mov dword [esp + 0x880], eax
push edi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], 0
push 0x250
mov dword [esp + 0x894], 2
call fcn.004620a8
mov edi, eax
add esp, 4
mov dword [esp + 0x3c], edi
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x890], 3
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x48a060
lea eax, [esp + 0x89c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x89c], 4
call fcn.00405530
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x894], 5
call fcn.00403cc0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x890], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a92f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea esi, [edi + 0x2c]
test esi, esi
mov ebx, eax
mov dword [esp + 0x24], ebx
jne 0x40a94c
xor eax, eax
jmp 0x40a955
push esi
call fcn.00449da9
add esp, 4
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00403be0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov ebp, dword [esp + 0x8a0]
mov ebx, dword [esp + 0x14]
je 0x40afdc
jmp 0x40a980
test byte [edi], 0x10
je 0x40aa94
cmp word [edi + 0x2c], 0x2e
lea eax, [edi + 0x2c]
je 0x40aa94
push eax
lea ecx, [esp + 0x89c]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.00405530
push 0x48a050
push eax
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x8a8], 6
call fcn.00405530
add esp, 0x18
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x894], 7
call fcn.00403cc0
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x890], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a9fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x890], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aa23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00401570
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x8a4]
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
push eax
mov byte [esp + 0x89c], 8
call fcn.00401570
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x3c], esp
mov esi, esp
push eax
mov byte [esp + 0x8a0], 9
call fcn.00401570
mov ecx, dword [esp + 0x50]
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [esp + 0x89c], 4
call fcn.0040a850
jmp 0x40afc8
lea esi, [edi + 0x2c]
test esi, esi
jne 0x40aa9f
xor eax, eax
jmp 0x40aaa8
push esi
call fcn.00449da9
add esp, 4
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00403be0
push 2
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x8a4]
call fcn.00405220
mov esi, eax
mov ecx, dword [esi]
mov ecx, dword [ecx - 0x10]
mov edx, dword [ecx]
mov byte [esp + 0x890], 0xa
call dword [edx + 0x10]
push eax
push 0x48a088
lea ecx, [esp + 0x40]
call fcn.00408500
mov eax, dword [esp + 0x38]
mov esi, dword [esi]
push eax
push esi
call fcn.0044a53d
mov ebx, eax
mov eax, dword [esp + 0x40]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ab1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov byte [esp + 0x890], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ab45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40b0d8
push 3
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x1c]
call fcn.00408280
mov esi, eax
mov ecx, dword [esi]
mov ebx, dword [esp + 0x18]
mov ecx, dword [ecx - 0x10]
mov edx, dword [ecx]
or ebx, 1
mov byte [esp + 0x890], 0xb
mov dword [esp + 0x18], ebx
call dword [edx + 0x10]
push eax
push 0x48a084
lea ecx, [esp + 0x4c]
call fcn.00408500
mov eax, dword [esp + 0x44]
mov esi, dword [esi]
push eax
push esi
call fcn.0044a53d
add esp, 8
test eax, eax
mov eax, dword [esp + 0x44]
setne byte [esp + 0x13]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40abc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
je 0x40ac47
push 3
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00408280
mov esi, eax
mov ecx, dword [esi]
mov ecx, dword [ecx - 0x10]
mov edx, dword [ecx]
or ebx, 2
mov dword [esp + 0x890], 0xc
mov dword [esp + 0x18], ebx
call dword [edx + 0x10]
push eax
push 0x48a080
lea ecx, [esp + 0x3c]
call fcn.00408500
mov eax, dword [esp + 0x34]
mov esi, dword [esi]
push eax
push esi
call fcn.0044a53d
add esp, 8
test eax, eax
mov eax, dword [esp + 0x34]
setne byte [esp + 0x13]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
mov byte [esp + 0x13], 1
jne 0x40ac4c
mov byte [esp + 0x13], 0
test bl, 2
mov dword [esp + 0x890], 0xb
je 0x40ac81
mov eax, dword [esp + 0x58]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 1
mov dword [esp + 0x890], 4
je 0x40acb6
mov eax, dword [esp + 0x64]
and ebx, 0xfffffffe
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40acb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
je 0x40b0d8
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x890], 0xd
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x890], 0xe
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x890], 0xf
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x898]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x894], 0x10
call fcn.00403cc0
test ebp, ebp
mov esi, dword [esp + 0x20]
jne 0x40ad4c
or ecx, 0xffffffff
jmp 0x40ad71
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x40ad58
or ecx, 0xffffffff
jmp 0x40ad71
push ebp
push esi
call fcn.0044a743
add esp, 8
test eax, eax
jne 0x40ad6b
or ecx, 0xffffffff
jmp 0x40ad71
sub eax, esi
sar eax, 1
mov ecx, eax
mov eax, dword [esi - 0xc]
sub eax, ecx
dec eax
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x28]
call fcn.00408280
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x894], 0x11
call fcn.00403cc0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x890], 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40adbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x489aa4
push ebp
lea ecx, [esp + 0x28]
call fcn.00408010
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x89c]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.00408390
add esp, 0xc
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x894], 0x12
call fcn.00403cc0
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x890], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x89c]
push ecx
lea edx, [esp + 0x64]
push edx
call fcn.00408390
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x894], 0x13
call fcn.00403cc0
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
mov byte [esp + 0x890], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx - 0xc]
test eax, eax
mov edi, dword [esp + 0x30]
jl 0x40af30
push 0x48a07c
push ebx
call fcn.0044a743
add esp, 8
test eax, eax
je 0x40af30
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x40af30
lea eax, [esp + 0x84]
push edi
push eax
call fcn.0044a5c9
xor eax, eax
lea ecx, [esp + 0x8c]
mov esi, 7
push ecx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], eax
mov word [esp + 0x78], ax
call fcn.00449da9
add esp, 0xc
push eax
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0x70]
call fcn.00402410
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x894], 0x14
call fcn.004037f0
cmp dword [esp + 0x80], 8
jb 0x40af1e
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004620d3
add esp, 4
xor eax, eax
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], eax
mov word [esp + 0x6c], ax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x890], 0xf
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40af56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x890], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x890], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x890], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40afc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a980
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.004620d3
lea eax, [ebx - 0x10]
add esp, 4
mov byte [esp + 0x890], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b012
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x890], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b038
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x898]
add eax, 0xfffffff0
mov byte [esp + 0x890], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b061
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x89c]
add eax, 0xfffffff0
mov byte [esp + 0x890], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b08a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x890], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x888]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x87c]
pop ebp
pop ebx
xor ecx, esp
call fcn.0044a318
add esp, 0x884
ret 0xc
mov ebx, dword [esp + 0x14]
jmp 0x40afc8