Function at 0x40f910
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x51eee0]
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 - 0x424]
mov dword [ebp - 0x404], eax
call fcn.00442860
mov dword [ebp - 4], 0
push str.path
mov ecx, esi
mov dword [ebp - 0x400], 0
mov byte [ebp - 4], 1
call fcn.00442de0
sub esp, 0x18
mov ecx, eax
push esp
call fcn.004435b0
lea eax, [ebp - 0x3f8]
push eax
call fcn.0044ee90
add esp, 0x1c
push str.folder
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00442de0
mov ecx, eax
call fcn.00443370
push 2
test al, al
push 0x4d9f28
lea ecx, [ebp - 0x3f8]
setne byte [ebp - 0x3f9]
call fcn.0040b980
lea eax, [ebp - 0x3f0]
push eax
push dword [ebp - 0x3f8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x400], edi
cmp edi, 0xffffffff
jne 0x40facb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x51eab0
push eax
push str.enumFileSystem_FindFirstFile__d
lea ecx, [ebp - 0x3f4]
call fcn.0040b190
lea eax, [ebp - 0x3f4]
push eax
lea eax, [ebp - 0x180]
push eax
mov byte [ebp - 4], 3
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 4
call fcn.00442780
push 0x4d968c
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 5
call fcn.00442d00
lea ecx, [ebp - 0x414]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 4
call fcn.00442a70
cmp dword [ebp - 0x16c], 0x10
jb 0x40fa79
push dword [ebp - 0x180]
call fcn.004a5bbe
add esp, 4
mov edx, dword [ebp - 0x3f4]
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 0x40fa9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x3f8]
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 0x40fac2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
jmp 0x40fdd0
or ebx, 0xffffffff
mov edi, edi
mov esi, dword [0x520340]
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0x11
idiv ecx
cmp edx, 0xe
jne 0x40fb08
lea ecx, [edx - 0xd]
cmp esi, ecx
jle 0x40fb02
mov eax, esi
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, esi
jl 0x40faf6
mov dword [0x520340], ecx
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3f4], eax
lea eax, [ebp - 0x3c4]
mov byte [ebp - 4], 6
test eax, 0xffff0000
jne 0x40fb50
movzx esi, ax
push 0
push esi
call fcn.00403b80
add esp, 8
test eax, eax
je 0x40fb82
push esi
push eax
lea ecx, [ebp - 0x3f4]
call fcn.00407650
jmp 0x40fb82
lea ecx, [ebp - 0x3c4]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fb60
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x3c4]
push eax
lea ecx, [ebp - 0x3f4]
call fcn.00409950
mov eax, dword [ebp - 0x3f4]
mov byte [ebp - 4], 7
mov edx, 0x4d9f70
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x40fbb9
test si, si
je 0x40fbb5
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x40fbb9
add ecx, 4
add edx, 4
test si, si
jne 0x40fb93
xor ecx, ecx
jmp 0x40fbbe
sbb ecx, ecx
or ecx, 1
test ecx, ecx
setne cl
test cl, cl
je 0x40fc89
mov edx, 0x4d9f74
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x40fbf8
test si, si
je 0x40fbf4
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x40fbf8
add ecx, 4
add edx, 4
test si, si
jne 0x40fbd2
xor ecx, ecx
jmp 0x40fbfd
sbb ecx, ecx
or ecx, 1
test ecx, ecx
setne cl
test cl, cl
je 0x40fc89
cmp byte [ebp - 0x3f9], 0
je 0x40fc1e
test byte [ebp - 0x3f0], 0x10
jne 0x40fc27
jmp 0x40fc89
test byte [ebp - 0x3f0], 0x10
jne 0x40fc89
lea eax, [ebp - 0x3f4]
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.0044ef60
add esp, 8
push eax
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 8
call fcn.00442780
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 9
call fcn.00443340
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 8
call fcn.00442a70
cmp dword [ebp - 0x16c], 0x10
jb 0x40fc83
push dword [ebp - 0x180]
call fcn.004a5bbe
add esp, 4
mov eax, dword [ebp - 0x3f4]
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 0x40fca6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x3f0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40fad0
lea ecx, [ebp - 0x424]
call fcn.004437f0
test al, al
je 0x40fd0c
push str.empty
lea ecx, [ebp - 0x414]
call fcn.00442820
push 0x4d968c
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 0xa
call fcn.00442d00
lea ecx, [ebp - 0x414]
push ecx
mov ecx, eax
call fcn.00442b10
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 2
call fcn.00442a70
mov edx, dword [ebp - 0x3f8]
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 0x40fdc5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40fdc5
mov dword [ebp - 4], 0
test edi, edi
je 0x40fdd7
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x1a0]
call fcn.004449b0
mov ebx, dword [0x520340]
mov byte [ebp - 4], 0xf
lea ecx, [ebx + 1]
lea eax, [ebx + 2]
imul eax, ecx
imul eax, ebx
cdq
mov ecx, 0x16
idiv ecx
cmp edx, 9
jne 0x40fe17
xor edi, edi
mov ecx, ebx
lea esp, [esp]
inc edi
dec ecx
cmp edi, 0x55
jb 0x40fe10
mov eax, dword [0x51eab0]
mov ecx, 0x51eab0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x3f8], esi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 0x10
call fcn.004478c0
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x11
jb 0x40fe58
mov edx, dword [edx]
sub esp, 0x18
mov edi, esp
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [edx], 0
jne 0x40fe77
xor ecx, ecx
jmp 0x40fe89
mov ecx, edx
lea ebx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fe80
sub ecx, ebx
push ecx
push edx
mov ecx, edi
call fcn.00401460
lea eax, [ebp - 0x400]
push eax
call fcn.0044ee90
add esp, 0x1c
mov ecx, dword [eax]
lea edi, [esi - 0x10]
lea edx, [ecx - 0x10]
mov byte [ebp - 4], 0x12
cmp edx, edi
je 0x40feff
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x40feea
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40feea
push edx
call fcn.00404840
add esp, 4
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40fedf
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea esi, [ebx + 0x10]
mov dword [ebp - 0x3f8], esi
jmp 0x40feff
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x3f8]
call fcn.00409950
mov esi, dword [ebp - 0x3f8]
mov edx, dword [ebp - 0x400]
add edx, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 0x11
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ff25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x16c], 0x10
mov byte [ebp - 4], 0x10
jb 0x40ff40
push dword [ebp - 0x180]
call fcn.004a5bbe
add esp, 4
mov edi, dword [ebp - 0x404]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x40ff61
call fcn.0040c2e0
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 0x40ff7f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x188], 0x10
mov byte [ebp - 4], 0
mov dword [ebp - 0x1a0], 0x4d9684
jb 0x40ffa4
push dword [ebp - 0x19c]
call fcn.004a5bbe
add esp, 4
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 0x188], 0xf
mov dword [ebp - 0x18c], 0
mov byte [ebp - 0x19c], 0
call fcn.00444ab0
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], 0xffffffff
call fcn.00442a70
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.004a63c4
mov esp, ebp
pop ebp
ret