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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa4c
push ebx
push esi
push edi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
mov eax, 0x524724
call fcn.00503e60
mov esi, 0x52414a
lea edi, [ebp - 0x36c]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x52424f
lea edi, [ebp - 0x474]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov dword [ebp - 0x44], eax
push dword [ebp - 0x3c]
call fcn.00503a8c
pop ecx
mov edx, dword [ebp - 0x3c]
movsx ecx, byte [edx + eax - 1]
cmp ecx, 0x5c
je 0x401d3c
push 0x524563
push dword [ebp - 0x3c]
call fcn.00503980
add esp, 8
push dword [ebp - 0x40]
call fcn.00503a8c
pop ecx
test eax, eax
jne 0x401d59
push 0x524565
push dword [ebp - 0x40]
call fcn.00503a5c
add esp, 8
push dword [ebp - 0x3c]
push 0x524567
lea eax, [ebp - 0x160]
push eax
call fcn.00506898
add esp, 0xc
mov dword [ebp - 0x48], 1
push dword [ebp - 0x48]
push 0x52456b
lea edx, [ebp - 0x474]
push edx
call fcn.00506898
add esp, 0xc
inc dword [ebp - 0x48]
push 0x524580
lea ecx, [ebp - 0x36c]
push ecx
call fcn.00420bd0
add esp, 8
push eax
push 0x104
lea eax, [ebp - 0x474]
push eax
push 0x52457e
lea edx, [ebp - 0x474]
push edx
push 0x52456e
call sub.KERNEL32.DLL_GetPrivateProfileStringA
lea ecx, [ebp - 0x474]
push ecx
call fcn.00503a8c
pop ecx
test eax, eax
je 0x401eba
lea eax, [ebp - 0x474]
push eax
push dword [ebp - 0x3c]
push 0x52458b
lea edx, [ebp - 0x264]
push edx
call fcn.00506898
add esp, 0x10
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
xor eax, eax
mov dword [ebp - 0x50], eax
jmp 0x401e6d
lea edx, [ebp - 0x264]
push edx
mov word [ebp - 0x24], 8
xor ecx, ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
inc dword [ebp - 0x18]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 4], 0
je 0x401e35
mov eax, dword [ebp - 4]
jmp 0x401e3a
mov eax, 0x524590
push eax
call fcn.00503c44
add esp, 8
test eax, eax
sete dl
and edx, 1
push edx
dec dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0050f140
pop ecx
test cl, cl
je 0x401e6a
mov dword [ebp - 0x4c], 1
jmp 0x401e7a
inc dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x50]
jg 0x401e07
cmp dword [ebp - 0x4c], 0
jne 0x401d77
mov word [ebp - 0x24], 0x14
lea edx, [ebp - 0x264]
lea eax, [ebp - 8]
call fcn.0050efe0
inc dword [ebp - 0x18]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0050f140
jmp 0x401d77
lea ecx, [ebp - 0x5b4]
push ecx
lea eax, [ebp - 0x160]
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0xffffffff
jne 0x401ee8
or eax, 0xffffffff
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x40214c
push 0x524591
lea ecx, [ebp - 0x588]
push ecx
call fcn.00503a10
add esp, 8
test eax, eax
je 0x402037
push 0x524593
lea eax, [ebp - 0x588]
push eax
call fcn.00503a10
add esp, 8
test eax, eax
je 0x402037
test byte [ebp - 0x5b4], 0x10
jne 0x402037
push dword [ebp - 0x3c]
lea edx, [ebp - 0x264]
push edx
call fcn.00503a5c
add esp, 8
lea ecx, [ebp - 0x588]
push ecx
lea eax, [ebp - 0x264]
push eax
call fcn.00503980
add esp, 8
xor edx, edx
mov dword [ebp - 0x58], edx
xor ecx, ecx
mov dword [ebp - 0x48], ecx
jmp 0x401fc7
lea eax, [ebp - 0x264]
push eax
mov word [ebp - 0x24], 0x20
xor edx, edx
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 0xc]
inc dword [ebp - 0x18]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0xc], 0
je 0x401f8f
mov eax, dword [ebp - 0xc]
jmp 0x401f94
mov eax, 0x524596
push eax
call fcn.00503c44
add esp, 8
test eax, eax
sete dl
and edx, 1
push edx
dec dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0050f140
pop ecx
test cl, cl
je 0x401fc4
mov dword [ebp - 0x58], 1
jmp 0x401fd4
inc dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x48]
jg 0x401f61
cmp dword [ebp - 0x58], 0
jne 0x402037
push 0x2e
lea ecx, [ebp - 0x264]
push ecx
call fcn.00503b91
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x402037
push dword [ebp - 0x40]
push dword [ebp - 0x5c]
call fcn.00503c44
add esp, 8
test eax, eax
jne 0x402037
mov word [ebp - 0x24], 0x2c
lea edx, [ebp - 0x264]
lea eax, [ebp - 0x10]
call fcn.0050efe0
inc dword [ebp - 0x18]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0050f140
lea ecx, [ebp - 0x5b4]
push ecx
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x401ee8
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_FindClose
push dword [ebp - 0x3c]
call fcn.00503a8c
pop ecx
mov edx, dword [ebp - 0x3c]
movsx eax, byte [edx + eax - 1]
cmp eax, 0x5c
je 0x40207c
push 0x524597
push dword [ebp - 0x3c]
call fcn.00503980
add esp, 8
push dword [ebp - 0x3c]
push 0x524599
lea ecx, [ebp - 0x160]
push ecx
call fcn.00506898
add esp, 0xc
lea eax, [ebp - 0x5b4]
push eax
lea edx, [ebp - 0x160]
push edx
call sub.KERNEL32.DLL_FindFirstFileA
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0xffffffff
jne 0x4020c1
or eax, 0xffffffff
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x40214c
push 0x52459d
lea ecx, [ebp - 0x588]
push ecx
call fcn.00503a10
add esp, 8
test eax, eax
je 0x402119
push 0x52459f
lea eax, [ebp - 0x588]
push eax
call fcn.00503a10
add esp, 8
test eax, eax
je 0x402119
push dword [ebp - 0x3c]
lea edx, [ebp - 0x264]
push edx
call fcn.00503a5c
add esp, 8
lea ecx, [ebp - 0x588]
push ecx
lea eax, [ebp - 0x264]
push eax
call fcn.00503980
add esp, 8
lea edx, [ebp - 0x5b4]
push edx
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x4020c1
push dword [ebp - 0x54]
call sub.KERNEL32.DLL_FindClose
mov eax, dword [ebp + 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4