Function at 0x41f23d
Capabilities:
Enumerate files on windows
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402b78
push 0x45ea34
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
mov eax, 0x2e8c
call fcn.0045e9a0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x41f27a
xor eax, eax
jmp 0x41f282
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
mov edx, dword [ebp + 0xc]
cmp edx, eax
jge 0x41f38e
mov ebx, edx
shl ebx, 2
cmp dword [ebx + ecx], 0
je 0x41f38e
mov edi, dword [ebx + ecx]
mov dword [ebp - 0x820], edi
cmp word [edi], 0x2a
jne 0x41f2d9
push 0x800
lea eax, [ebp - 0x818]
push eax
add edi, 2
push edi
call fcn.0042523f
add esp, 0xc
lea eax, [ebp - 0x818]
push eax
mov ecx, 0x4789e8
call fcn.00419869
jmp 0x41f5ff
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
cmp word [edi + eax*2 - 2], 0x5c
jne 0x41f532
xor esi, esi
cmp dword [0x476650], esi
je 0x41f339
push esi
push esi
push 0xbb
call fcn.004252ac
pop ecx
push eax
mov ebx, 0x460a90
mov ecx, ebx
call fcn.00412478
push dword [0x5358f4]
mov ecx, ebx
call fcn.004124e8
mov dword [ebp - 0xc80], eax
mov ecx, ebx
call fcn.004124d4
mov dword [0x476650], eax
cmp dword [ebp - 0xc80], 1
jne 0x41f38e
or dword [ebp - 0xc7c], 0xffffffff
push 0x40aaf0
push edi
push 0x40aae4
push 0x104
lea eax, [ebp - 0xc78]
push eax
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
call ebx
add esp, 0x14
mov word [ebp - 0xa72], si
mov dword [ebp - 4], esi
lea eax, [ebp - 0xa70]
push eax
lea eax, [ebp - 0xc78]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc7c], eax
cmp eax, 0xffffffff
jne 0x41f39f
or dword [ebp - 4], eax
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
mov esi, 0x800
push 0x40aae0
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
je 0x41f4dd
push 0x40aad8
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
je 0x41f4dd
test byte [ebp - 0xa70], 0x10
jne 0x41f4dd
lea eax, [ebp - 0xa44]
push eax
push edi
push 0x40aae4
push 0x104
lea eax, [ebp - 0xe88]
push eax
call ebx
add esp, 0x14
and word [ebp - 0xc82], 0
lea eax, [ebp - 0xe88]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
jne 0x41f4dd
and byte [ebp - 0x818], 0
and word [ebp - 0x1e88], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1e86]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xe88]
push eax
call fcn.00427355
pop ecx
test eax, eax
lea eax, [ebp - 0xe88]
push eax
je 0x41f492
push esi
lea eax, [ebp - 0x1e88]
push eax
push 0x4613e4
push 0x40aa4c
push 0x40aa28
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x1e88]
push eax
call fcn.0042523f
add esp, 0xc
jmp 0x41f4c7
call fcn.004272f6
pop ecx
test eax, eax
je 0x41f4c7
push esi
lea eax, [ebp - 0x1e88]
push eax
lea eax, [ebp - 0xe88]
push eax
call fcn.00427902
push esi
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x1e88]
push eax
call fcn.0042523f
add esp, 0x18
push 1
lea eax, [ebp - 0x818]
push eax
call fcn.004212b0
pop ecx
pop ecx
mov edi, dword [ebp - 0x820]
lea eax, [ebp - 0xa70]
push eax
push dword [ebp - 0xc7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41f3a4
push dword [ebp - 0xc7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0xc7c], 0xffffffff
or dword [ebp - 4], 0xffffffff
jmp 0x41f5ff
mov edx, dword [esi + 4]
cmp dword [ebx + edx], 0
je 0x41f5ff
and byte [ebp - 0x818], 0
and word [ebp - 0x2e88], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x2e86]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push dword [ebx + edx]
call fcn.00427355
pop ecx
test eax, eax
je 0x41f5ad
mov eax, dword [esi + 4]
push dword [ebx + eax]
mov esi, 0x800
push esi
lea eax, [ebp - 0x2e88]
push eax
push 0x4613e4
push 0x40aa4c
push 0x40aa28
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x2e88]
push eax
call fcn.0042523f
add esp, 0xc
jmp 0x41f5ef
mov esi, dword [esi + 4]
push dword [ebx + esi]
call fcn.004272f6
pop ecx
test eax, eax
je 0x41f5ef
mov esi, 0x800
push esi
lea eax, [ebp - 0x2e88]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push dword [ebx + eax]
call fcn.00427902
push esi
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x2e88]
push eax
call fcn.0042523f
add esp, 0x18
push 0
lea eax, [ebp - 0x818]
push eax
call fcn.004212b0
pop ecx
pop ecx
push 1
pop eax
jmp 0x41f390