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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402bb8
push 0x45c1d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
mov eax, 0x2e8c
call fcn.0045c140
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 0x41e61a
xor eax, eax
jmp 0x41e622
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
mov edx, dword [ebp + 0xc]
cmp edx, eax
jge 0x41e72e
mov ebx, edx
shl ebx, 2
cmp dword [ebx + ecx], 0
je 0x41e72e
mov edi, dword [ebx + ecx]
mov dword [ebp - 0x820], edi
cmp word [edi], 0x2a
jne 0x41e679
push 0x800
lea eax, [ebp - 0x818]
push eax
add edi, 2
push edi
call fcn.00424811
add esp, 0xc
lea eax, [ebp - 0x818]
push eax
mov ecx, 0x474b78
call fcn.00418c1f
jmp 0x41e99f
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
cmp word [edi + eax*2 - 2], 0x5c
jne 0x41e8d2
xor esi, esi
cmp dword [0x4727ec], esi
je 0x41e6d9
push esi
push esi
push 0xbb
call fcn.0042487e
pop ecx
push eax
mov ebx, 0x45e2c0
mov ecx, ebx
call fcn.00411868
push dword [0x531674]
mov ecx, ebx
call fcn.004118d8
mov dword [ebp - 0xc80], eax
mov ecx, ebx
call fcn.004118c4
mov dword [0x4727ec], eax
cmp dword [ebp - 0xc80], 1
jne 0x41e72e
or dword [ebp - 0xc7c], 0xffffffff
push 0x40ab14
push edi
push 0x40ab08
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 0x41e73f
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 0x40ab04
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
je 0x41e87d
push 0x40aafc
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
je 0x41e87d
test byte [ebp - 0xa70], 0x10
jne 0x41e87d
lea eax, [ebp - 0xa44]
push eax
push edi
push 0x40ab08
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 0x41e87d
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.004267f1
pop ecx
test eax, eax
lea eax, [ebp - 0xe88]
push eax
je 0x41e832
push esi
lea eax, [ebp - 0x1e88]
push eax
push 0x45ec14
push 0x40aa70
push 0x40aa4c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x1e88]
push eax
call fcn.00424811
add esp, 0xc
jmp 0x41e867
call fcn.00426792
pop ecx
test eax, eax
je 0x41e867
push esi
lea eax, [ebp - 0x1e88]
push eax
lea eax, [ebp - 0xe88]
push eax
call fcn.00426d25
push esi
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x1e88]
push eax
call fcn.00424811
add esp, 0x18
push 1
lea eax, [ebp - 0x818]
push eax
call fcn.00420650
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 0x41e744
push dword [ebp - 0xc7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0xc7c], 0xffffffff
or dword [ebp - 4], 0xffffffff
jmp 0x41e99f
mov edx, dword [esi + 4]
cmp dword [ebx + edx], 0
je 0x41e99f
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.004267f1
pop ecx
test eax, eax
je 0x41e94d
mov eax, dword [esi + 4]
push dword [ebx + eax]
mov esi, 0x800
push esi
lea eax, [ebp - 0x2e88]
push eax
push 0x45ec14
push 0x40aa70
push 0x40aa4c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x2e88]
push eax
call fcn.00424811
add esp, 0xc
jmp 0x41e98f
mov esi, dword [esi + 4]
push dword [ebx + esi]
call fcn.00426792
pop ecx
test eax, eax
je 0x41e98f
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.00426d25
push esi
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x2e88]
push eax
call fcn.00424811
add esp, 0x18
push 0
lea eax, [ebp - 0x818]
push eax
call fcn.00420650
pop ecx
pop ecx
push 1
pop eax
jmp 0x41e730