Function at 0x410150
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c73ac
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x524ee0]
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]
mov dword [ebp - 0x2b0], eax
call fcn.00418a30
test al, al
jne 0x4101b4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0
lea ecx, [ebp - 0x2d0]
call fcn.00444480
mov dword [ebp - 4], 0
call fcn.00418970
push str.path
mov ecx, esi
mov dword [ebp - 0x2ac], 0
mov byte [ebp - 4], 1
call fcn.00444a00
sub esp, 0x18
mov ecx, eax
push esp
call fcn.004451d0
lea eax, [ebp - 0x2a8]
push eax
call fcn.004512c0
add esp, 0x1c
push str.folder
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00444a00
mov ecx, eax
call fcn.00444f90
push 2
test al, al
push 0x4e0518
lea ecx, [ebp - 0x2a8]
setne byte [ebp - 0x2a1]
call fcn.0040b920
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 0x41032e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x524ab0
push eax
push str.enumFileSystem_FindFirstFile__d
lea ecx, [ebp - 0x2a0]
call fcn.0040b160
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 3
call fcn.00451390
add esp, 8
push eax
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 4
call fcn.004443a0
push 0x4dfc64
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 5
call fcn.00444920
lea ecx, [ebp - 0x2c0]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 4
call fcn.00444690
cmp dword [ebp - 0x18], 0x10
jb 0x4102dc
push dword [ebp - 0x2c]
call fcn.004a831e
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 0x410302
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 0x410325
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x41065d
call fcn.00418a30
test al, al
jne 0x410349
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
or ebx, 0xffffffff
lea esp, [esp]
mov eax, dword [0x524ab0]
mov ecx, 0x524ab0
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 0x410398
movzx esi, ax
push 0
push esi
call fcn.00403b10
add esp, 8
test eax, eax
je 0x4103c3
push esi
push eax
lea ecx, [ebp - 0x2a0]
call fcn.004074c0
jmp 0x4103c3
lea ecx, [ebp - 0x270]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4103a1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00409670
mov eax, dword [ebp - 0x2a0]
mov byte [ebp - 4], 7
mov ecx, 0x4e0560
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4103f8
test dx, dx
je 0x4103f4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4103f8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4103d2
xor eax, eax
jmp 0x4103fd
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x4104bd
mov eax, dword [ebp - 0x2a0]
mov ecx, 0x4e0564
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41043b
test dx, dx
je 0x410437
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41043b
add eax, 4
add ecx, 4
test dx, dx
jne 0x410415
xor eax, eax
jmp 0x410440
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x4104bd
cmp byte [ebp - 0x2a1], 0
je 0x41045d
test byte [ebp - 0x29c], 0x10
jne 0x410466
jmp 0x4104bd
test byte [ebp - 0x29c], 0x10
jne 0x4104bd
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00451390
add esp, 8
push eax
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 8
call fcn.004443a0
push eax
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 9
call fcn.00444f60
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 8
call fcn.00444690
cmp dword [ebp - 0x18], 0x10
mov byte [ebp - 4], 7
jb 0x4104bd
push dword [ebp - 0x2c]
call fcn.004a831e
add esp, 4
mov esi, dword [0x526340]
mov eax, esi
imul eax, esi
cdq
mov ecx, 0xf
idiv ecx
cmp edx, 0xc
jne 0x410513
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.004a7aa0
add esp, 4
push eax
call fcn.004a98f0
add esp, 4
mov edx, dword [ebp - 0x2a0]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410536
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 0x410350
lea ecx, [ebp - 0x2d0]
call fcn.00445410
test al, al
je 0x41059c
push str.empty
lea ecx, [ebp - 0x2c0]
call fcn.00444440
push 0x4dfc64
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 0xa
call fcn.00444920
lea ecx, [ebp - 0x2c0]
push ecx
mov ecx, eax
call fcn.00444730
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 2
call fcn.00444690
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 0x410652
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x410652
mov dword [ebp - 4], 0
test edi, edi
je 0x410664
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x4c]
call fcn.004465d0
mov eax, dword [0x524ab0]
mov ecx, 0x524ab0
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.00449500
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x11
jb 0x4106ab
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 0x4106ca
xor ecx, ecx
jmp 0x4106d9
mov ecx, edx
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4106d0
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00401460
lea eax, [ebp - 0x2a8]
push eax
call fcn.004512c0
add esp, 0x1c
push eax
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0x12
call fcn.00402ab0
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 0x410724
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 0x410739
push dword [ebp - 0x2c]
call fcn.004a831e
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 0x410760
call fcn.00409970
add esi, 0xfffffff0
mov dword [edi + 8], eax
mov byte [ebp - 4], 0xf
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x41077e
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], 0x4dfc5c
jb 0x41079a
push dword [ebp - 0x48]
call fcn.004a831e
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.004466d0
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 4], 0xffffffff
call fcn.00444690
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.004a8b24
mov esp, ebp
pop ebp
ret