Function at 0x40fdf0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f463
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x58a06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, str.Color
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
call fcn.004345e0
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp eax, 0x10
je 0x40ff0f
push 0
push dword [ebp - 0x14]
call dword [0x53e2ec]
push str.Color.ini
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x270]
call fcn.0040a2c0
mov byte [ebp - 4], 1
mov edx, str.ColorFileName
push dword [eax]
mov ecx, str.Config
push 0
call fcn.00434ca0
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x270]
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40fea9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x54ebe4
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x270]
call fcn.0040a2c0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 2
mov ecx, dword [esi]
cmp dword [ecx - 4], 1
jle 0x40fed9
push dword [ecx - 0xc]
mov ecx, esi
call fcn.0040b2e0
mov ecx, dword [esi]
mov edx, dword [0x58f394]
test edx, edx
je 0x40ff00
mov eax, dword [edx]
push 1
push ecx
push 0x422
mov ecx, edx
call dword [eax + 0x1c]
nop dword [eax]
nop word [eax + eax]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x270]
jmp 0x41015e
mov edx, str.ColorColor.ini
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x274]
call fcn.004345e0
mov byte [ebp - 4], 3
mov edx, str.Config
push dword [eax]
push ecx
push str.ColorFileName
lea ecx, [ebp - 0x18]
call fcn.00434ae0
add esp, 0xc
mov byte [ebp - 4], 5
or ebx, 0xffffffff
mov edx, dword [ebp - 0x274]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ff66
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, str.Color.cr
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
call fcn.004345e0
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 6
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x410139
mov ecx, dword [esi + 0x34]
push 1
push str.combocolor
add ecx, 0x55c
call fcn.0047d65a
mov edi, eax
test edi, edi
je 0x410139
mov esi, dword [ebp - 0x270]
nop dword [eax]
nop word [eax + eax]
test byte [ebp - 0x26c], 0x10
lea eax, [ebp - 0x240]
je 0x41000e
push 0x54ec20
push eax
call fcn.00508b12
add esp, 8
test eax, eax
je 0x41011c
lea eax, [ebp - 0x240]
push 0x54ec24
push eax
call fcn.00508b12
add esp, 8
jmp 0x41011c
push str.DefaultColor.cr
push eax
call fcn.00508b12
add esp, 8
test eax, eax
je 0x41011c
push 0x6d8
call fcn.0050058b
mov esi, eax
add esp, 4
mov dword [ebp - 0x278], esi
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.0046f32c
mov dword [esi + 0x6b8], 0x55d2d8
mov ecx, esi
push 0
mov dword [esi + 0x6bc], 0xffffffff
mov byte [esi + 0x6c0], 0
mov dword [esi + 0x6c4], 0
mov dword [esi + 0x6c8], 0
mov dword [esi], vtable.DuiLib::CListLabelElementUI.0
mov dword [esi + 0x6b8], 0x55d080
mov dword [esi + 0x6d0], 0
mov byte [ebp - 4], 6
call fcn.0047045b
mov eax, dword [esi]
lea ecx, [ebp - 0x240]
push ecx
mov ecx, esi
call dword [eax + 0x50]
mov eax, dword [edi + 0x6b8]
lea ecx, [edi + 0x6b8]
push esi
mov eax, dword [eax + 0x10]
call eax
mov ecx, esi
test al, al
jne 0x4100c8
mov eax, dword [esi]
push 1
call dword [eax]
jmp 0x4100dd
mov eax, dword [edi + 0x1b8]
mov edx, dword [esi]
sub eax, dword [edi + 0x1b0]
push eax
call dword [edx + 0xd0]
mov eax, dword [ebp - 0x18]
cmp dword [eax - 4], 1
jle 0x4100f4
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
call fcn.0040b2e0
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.00508b12
add esp, 8
test eax, eax
jne 0x410116
mov eax, dword [edi]
lea ecx, [ebp - 0x240]
push ecx
mov ecx, edi
call dword [eax + 0x50]
mov esi, dword [ebp - 0x270]
lea eax, [ebp - 0x26c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ffd0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410157
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410175
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x410194
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005000f2
mov esp, ebp
pop ebp
ret