Function at 0x40fb20
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5bfc
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x51fee0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 0x2b0], eax
call fcn.00443cd0
mov dword [ebp - 4], 0
push str.path
mov ecx, esi
mov dword [ebp - 0x2ac], 0
mov byte [ebp - 4], 1
call fcn.00444250
sub esp, 0x18
mov ecx, eax
push esp
call fcn.00444a40
lea eax, [ebp - 0x2a8]
push eax
call fcn.0044ff60
add esp, 0x1c
push str.folder
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00444250
mov ecx, eax
call fcn.00444810
push 2
test al, al
push 0x4dae08
lea ecx, [ebp - 0x2a8]
setne byte [ebp - 0x2a1]
call fcn.0040b9f0
lea eax, [ebp - 0x29c]
push eax
push dword [ebp - 0x2a8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x2ac], edi
cmp edi, 0xffffffff
jne 0x40fcd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x51fab0
push eax
push str.enumFileSystem_FindFirstFile__d
lea ecx, [ebp - 0x2a0]
call fcn.0040b150
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 3
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 4
call fcn.00443bf0
push 0x4da4ec
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 5
call fcn.00444170
lea ecx, [ebp - 0x2c0]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 4
call fcn.00443ee0
cmp dword [ebp - 0x18], 0x10
jb 0x40fc80
push dword [ebp - 0x2c]
call fcn.004a6c2e
add esp, 4
mov edx, dword [ebp - 0x2a0]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40fca6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2a8]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fcc9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x40ff8d
or ebx, 0xffffffff
jmp 0x40fce0
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2a0], eax
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 6
test eax, 0xffff0000
jne 0x40fd28
movzx esi, ax
push 0
push esi
call fcn.00403bc0
add esp, 8
test eax, eax
je 0x40fd53
push esi
push eax
lea ecx, [ebp - 0x2a0]
call fcn.004075c0
jmp 0x40fd53
lea ecx, [ebp - 0x270]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fd31
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.004097a0
mov eax, dword [ebp - 0x2a0]
mov byte [ebp - 4], 7
mov edx, 0x4dae50
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x40fd8a
test si, si
je 0x40fd86
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x40fd8a
add ecx, 4
add edx, 4
test si, si
jne 0x40fd64
xor ecx, ecx
jmp 0x40fd8f
sbb ecx, ecx
or ecx, 1
test ecx, ecx
setne cl
test cl, cl
je 0x40fe4d
mov edx, 0x4dae54
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x40fdc9
test si, si
je 0x40fdc5
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x40fdc9
add ecx, 4
add edx, 4
test si, si
jne 0x40fda3
xor ecx, ecx
jmp 0x40fdce
sbb ecx, ecx
or ecx, 1
test ecx, ecx
setne cl
test cl, cl
je 0x40fe4d
cmp byte [ebp - 0x2a1], 0
je 0x40fdeb
test byte [ebp - 0x29c], 0x10
jne 0x40fdf4
jmp 0x40fe4d
test byte [ebp - 0x29c], 0x10
jne 0x40fe4d
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00450030
add esp, 8
push eax
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 8
call fcn.00443bf0
push eax
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 9
call fcn.004447e0
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 8
call fcn.00443ee0
cmp dword [ebp - 0x18], 0x10
jb 0x40fe47
push dword [ebp - 0x2c]
call fcn.004a6c2e
add esp, 4
mov eax, dword [ebp - 0x2a0]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fe6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x29c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40fce0
lea ecx, [ebp - 0x2d0]
call fcn.00444c90
test al, al
je 0x40fed0
push str.empty
lea ecx, [ebp - 0x2c0]
call fcn.00443c90
push 0x4da4ec
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 0xa
call fcn.00444170
lea ecx, [ebp - 0x2c0]
push ecx
mov ecx, eax
call fcn.00443f80
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 2
call fcn.00443ee0
mov edx, dword [ebp - 0x2a8]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ff86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40ff86
mov dword [ebp - 4], 0
mov esi, dword [0x521340]
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0x15
idiv ecx
cmp edx, 0xa
jne 0x40ffe7
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x141]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a63b0
push eax
call fcn.004a8200
add esp, 8
test edi, edi
je 0x40fff2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x4c]
call fcn.00445f40
mov eax, dword [0x51fab0]
mov ecx, 0x51fab0
mov byte [ebp - 4], 0xf
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2ac], eax
lea eax, [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x10
call fcn.00448e50
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x11
jb 0x410039
mov edx, dword [edx]
sub esp, 0x18
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x410058
xor ecx, ecx
jmp 0x410069
mov ecx, edx
lea edi, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410060
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00401460
lea eax, [ebp - 0x2a8]
push eax
call fcn.0044ff60
add esp, 0x1c
push eax
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0x12
call fcn.00402b30
mov edx, dword [ebp - 0x2a8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0x11
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4100b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0x10
mov byte [ebp - 4], 0x10
jb 0x4100c9
push dword [ebp - 0x2c]
call fcn.004a6c2e
add esp, 4
mov edi, dword [ebp - 0x2b0]
mov esi, dword [ebp - 0x2ac]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x4100f0
call fcn.0040c350
mov dword [edi + 8], eax
mov edx, dword [0x521340]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 9
idiv ecx
cmp edx, 4
jne 0x41011d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x521340], eax
add esi, 0xfffffff0
mov byte [ebp - 4], 0xf
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x410138
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x34], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x4c], 0x4da4e4
jb 0x410154
push dword [ebp - 0x48]
call fcn.004a6c2e
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.00446040
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 4], 0xffffffff
call fcn.00443ee0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a7434
mov esp, ebp
pop ebp
ret