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

Disassembly:
mov eax, 0x41771c
call fcn.00417000
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 [0x42b378]
mov edi, ecx
mov dword [ebp - 0x24], edi
call fcn.0040da2e
add esp, 0x10
lea eax, [ebp - 0x470]
mov ebx, 0x104
push 0x404c44
push eax
push 0x405adc
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.0041668e
mov eax, dword [0x404590]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
mov esi, 0x417d04
mov eax, esi
test eax, eax
je 0x4163d0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c3ee
push 0xc3f
call fcn.0040d9d2
test eax, eax
pop ecx
mov dword [ebp - 0x20], eax
je 0x4163f3
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040c3ee
mov eax, esi
test eax, eax
je 0x41640c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c3ee
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.0041667d
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 0x41644d
mov dword [ebp - 4], 2
jmp 0x4165c7
lea eax, [ebp - 0x138]
push 0x404c40
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x41659f
lea eax, [ebp - 0x138]
push 0x404c3c
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x41659f
test byte [ebp - 0x164], 0x10
je 0x41659f
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x470]
push eax
push 0x405ac8
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.0040c4b7
lea eax, [ebp - 0x19]
lea ecx, [ebp - 0x14]
push eax
push 1
mov byte [ebp - 0x19], 0x5c
call fcn.0040c5a1
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040c4b7
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 0x416577
xor edi, edi
lea eax, [ebp - 0x36c]
push edi
push eax
call fcn.0040e6be
pop ecx
cmp eax, edi
pop ecx
je 0x416579
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.0040c648
lea ecx, [ebp - 0x268]
push ecx
push 0x103
push eax
push esi
push 0x405ac0
push 0x405ab8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.0040c6af
jmp 0x416579
xor edi, edi
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], edi
jne 0x416590
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040c4b7
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0x50]
call fcn.0041667d
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41644d
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.0040c36c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040c36c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret