Function at 0x417024
Capabilities:
Enumerate files on windows
Read .ini file

Disassembly:
mov eax, 0x41844c
call fcn.00417cf0
sub esp, 0x568
push ebx
push esi
push edi
lea eax, [ebp - 0x470]
mov dword [ebp - 0x10], esp
push 0
push 0x103
push eax
push dword [0x42c490]
mov edi, ecx
mov dword [ebp - 0x24], edi
call fcn.0040d7bb
add esp, 0x10
lea eax, [ebp - 0x470]
mov ebx, 0x104
push 0x404c70
push eax
push 0x405bb0
lea eax, [ebp - 0x574]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [edi + 0x58]
mov ecx, dword [edi + 0x54]
and byte [ebp - 0x471], 0
add edi, 0x50
add esp, 0x14
push eax
push ecx
mov ecx, edi
call fcn.0041737a
mov eax, dword [0x4045c8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
mov esi, 0x418a34
mov eax, esi
test eax, eax
je 0x4170bc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c314
push 0xc3f
call fcn.0040d75f
test eax, eax
pop ecx
mov dword [ebp - 0x20], eax
je 0x4170df
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040c314
mov eax, esi
test eax, eax
je 0x4170f8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c314
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00417369
lea eax, [ebp - 0x164]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x574]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x417139
mov dword [ebp - 4], 2
jmp 0x4172b3
lea eax, [ebp - 0x138]
push 0x404c6c
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x41728b
lea eax, [ebp - 0x138]
push 0x404c68
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x41728b
test byte [ebp - 0x164], 0x10
je 0x41728b
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x470]
push eax
push 0x405b9c
lea eax, [ebp - 0x268]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
and byte [ebp - 0x36c], 0
add esp, 0x14
xor eax, eax
lea edi, [ebp - 0x36b]
push 0x40
and byte [ebp - 0x165], 0
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x14]
push eax
call fcn.0040c410
lea eax, [ebp - 0x19]
lea ecx, [ebp - 0x14]
push eax
push 1
mov byte [ebp - 0x19], 0x5c
call fcn.0040c455
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040c410
lea eax, [ebp - 0x36c]
push 0x103
push eax
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x417263
xor edi, edi
lea eax, [ebp - 0x36c]
push edi
push eax
call fcn.0040e44b
pop ecx
cmp eax, edi
pop ecx
je 0x417265
lea eax, [ebp - 0x268]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebx
lea ecx, [ebp - 0x18]
call fcn.0040c4fc
lea ecx, [ebp - 0x268]
push ecx
push 0x103
push eax
push esi
push 0x405b94
push 0x405b8c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.0040c563
jmp 0x417265
xor edi, edi
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], edi
jne 0x41727c
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040c410
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0x50]
call fcn.00417369
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x417139
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.0040c21b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040c21b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret