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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402b70
push 0x45d024
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
mov eax, 0x2e8c
call fcn.0045cf90
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 0x41ea0c
xor eax, eax
jmp 0x41ea14
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
mov edx, dword [ebp + 0xc]
cmp edx, eax
jge 0x41eb20
mov ebx, edx
shl ebx, 2
cmp dword [ebx + ecx], 0
je 0x41eb20
mov edi, dword [ebx + ecx]
mov dword [ebp - 0x820], edi
cmp word [edi], 0x2a
jne 0x41ea6b
push 0x800
lea eax, [ebp - 0x818]
push eax
add edi, 2
push edi
call fcn.00424a26
add esp, 0xc
lea eax, [ebp - 0x818]
push eax
mov ecx, 0x475a08
call fcn.00418fca
jmp 0x41ed91
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
cmp word [edi + eax*2 - 2], 0x5c
jne 0x41ecc4
xor esi, esi
cmp dword [0x47367c], esi
je 0x41eacb
push esi
push esi
push 0xbb
call fcn.00424a93
pop ecx
push eax
mov ebx, 0x45f150
mov ecx, ebx
call fcn.00411c78
push dword [0x532504]
mov ecx, ebx
call fcn.00411ce8
mov dword [ebp - 0xc80], eax
mov ecx, ebx
call fcn.00411cd4
mov dword [0x47367c], eax
cmp dword [ebp - 0xc80], 1
jne 0x41eb20
or dword [ebp - 0xc7c], 0xffffffff
push 0x40ab8c
push edi
push 0x40ab80
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 0x41eb31
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 0x40ab7c
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
je 0x41ec6f
push 0x40ab74
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
je 0x41ec6f
test byte [ebp - 0xa70], 0x10
jne 0x41ec6f
lea eax, [ebp - 0xa44]
push eax
push edi
push 0x40ab80
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 0x41ec6f
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.00426af8
pop ecx
test eax, eax
lea eax, [ebp - 0xe88]
push eax
je 0x41ec24
push esi
lea eax, [ebp - 0x1e88]
push eax
push 0x45faa4
push 0x40aae8
push 0x40aac4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x1e88]
push eax
call fcn.00424a26
add esp, 0xc
jmp 0x41ec59
call fcn.00426a99
pop ecx
test eax, eax
je 0x41ec59
push esi
lea eax, [ebp - 0x1e88]
push eax
lea eax, [ebp - 0xe88]
push eax
call fcn.004270a5
push esi
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x1e88]
push eax
call fcn.00424a26
add esp, 0x18
push 1
lea eax, [ebp - 0x818]
push eax
call fcn.00420a42
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 0x41eb36
push dword [ebp - 0xc7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0xc7c], 0xffffffff
or dword [ebp - 4], 0xffffffff
jmp 0x41ed91
mov edx, dword [esi + 4]
cmp dword [ebx + edx], 0
je 0x41ed91
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.00426af8
pop ecx
test eax, eax
je 0x41ed3f
mov eax, dword [esi + 4]
push dword [ebx + eax]
mov esi, 0x800
push esi
lea eax, [ebp - 0x2e88]
push eax
push 0x45faa4
push 0x40aae8
push 0x40aac4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x2e88]
push eax
call fcn.00424a26
add esp, 0xc
jmp 0x41ed81
mov esi, dword [esi + 4]
push dword [ebx + esi]
call fcn.00426a99
pop ecx
test eax, eax
je 0x41ed81
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.004270a5
push esi
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x2e88]
push eax
call fcn.00424a26
add esp, 0x18
push 0
lea eax, [ebp - 0x818]
push eax
call fcn.00420a42
pop ecx
pop ecx
push 1
pop eax
jmp 0x41eb22