Function at 0x412717
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4937fc
mov eax, dword fs:[0]
push eax
mov eax, 0x18c8
call fcn.00462010
mov eax, dword [0x4c6260]
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
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x166c]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x1670], ebx
call fcn.00461390
mov eax, dword [0x4bd024]
mov dword [ebp - 0x18c8], eax
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00461390
mov edi, 0x800
push edi
lea eax, [ebp - 0xc20]
push ebx
push eax
call fcn.00461390
push edi
lea eax, [ebp - 0x1420]
push ebx
push eax
call fcn.00461390
push 0x400
lea eax, [ebp - 0xc20]
push eax
push dword [esi + 4]
call fcn.0040d723
add esp, 0x3c
xor edi, edi
cmp dword [esi + 8], ebx
jle 0x4127e0
lea eax, [ebp - 0xc20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
inc edi
cmp edi, dword [esi + 8]
jl 0x4127cd
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.config
lea eax, [ebp - 0xc20]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x18c8]
call fcn.00411a2b
push 0x49bf34
lea ecx, [ebp - 0x18c8]
call fcn.0040fe97
lea eax, [ebp - 0x1670]
push eax
push dword [ebp - 0x18c8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x18d4], eax
cmp eax, ebx
je 0x412a16
test byte [ebp - 0x1670], 0x10
je 0x4129ef
lea eax, [ebp - 0x1644]
push 0x49bf30
push eax
call fcn.00461ee1
pop ecx
pop ecx
test eax, eax
je 0x4129ef
lea eax, [ebp - 0x1644]
push 0x49bf28
push eax
call fcn.00461ee1
pop ecx
pop ecx
test eax, eax
je 0x4129ef
lea eax, [ebp - 0x1644]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x1420]
push eax
call edi
mov esi, dword [0x4bd024]
mov dword [ebp - 0x18cc], esi
mov dword [ebp - 0x18c4], esi
push 0x24c
lea eax, [ebp - 0x18bc]
push ebx
push eax
mov dword [ebp - 0x18c0], ebx
call fcn.00461390
mov dword [ebp - 0x18d0], esi
xor eax, eax
push 0x206
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
mov byte [ebp - 4], 3
call fcn.00461390
add esp, 0x18
call fcn.004114a4
cmp eax, ebx
je 0x4129cb
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
mov esi, eax
cmp esi, ebx
je 0x4129cb
push 0x104
lea eax, [ebp - 0x1420]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00461fae
add esp, 0xc
lea eax, [ebp - 0x1420]
push eax
lea ecx, [ebp - 0x18c4]
call fcn.00411a2b
push 0x49bf1c
lea ecx, [ebp - 0x18c4]
call fcn.0040fe97
lea eax, [ebp - 0x18c0]
push eax
push dword [ebp - 0x18c4]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, ebx
je 0x41298d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x18c4]
call fcn.00411a2b
push 0x49bf18
lea ecx, [ebp - 0x18c4]
call fcn.0040fe97
lea eax, [ebp - 0x1894]
push eax
jmp 0x4129b4
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x18c4]
call fcn.00411a2b
push 0x49bf18
lea ecx, [ebp - 0x18c4]
call fcn.0040fe97
push str.noui.ui
lea ecx, [ebp - 0x18c4]
call fcn.0040fe97
push dword [ebp - 0x18c4]
mov eax, dword [esi]
push ebx
push esi
call dword [eax]
lea ecx, [ebp - 0x18d0]
call fcn.0040e14c
lea ecx, [ebp - 0x18c4]
call fcn.0040e14c
lea ecx, [ebp - 0x18cc]
mov byte [ebp - 4], bl
call fcn.0040e14c
lea eax, [ebp - 0x1670]
push eax
push dword [ebp - 0x18d4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41283e
push dword [ebp - 0x18d4]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x18c8]
call fcn.0040e14c
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.00461ffa
leave
ret