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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d67c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x3de4
call fcn.004d3780
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [0x6dcf84]
mov dword [ebp - 0x10], esp
push 0
lea eax, [ebp - 0x88c]
push 0x103
push eax
push ecx
mov dword [ebp - 0x18], esi
call fcn.004a7ac0
add esp, 0x10
lea edx, [ebp - 0x88c]
lea eax, [ebp - 0xa94]
push 0x4eb870
push edx
push str._sskin_s
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [esi + 0xb6c]
mov edx, dword [esi + 0xb68]
add esp, 0x14
cmp eax, eax
mov word [ebp - 0x88e], 0
mov ebx, eax
je 0x405d6a
mov esi, ebx
mov edi, edx
add ebx, 0x18ac
mov ecx, 0x62b
add edx, 0x18ac
cmp ebx, eax
rep movsd dword es:[edi], dword [esi]
jne 0x405d4c
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi + 0xb6c]
add esi, 0xb64
mov ebx, dword [sym.imp.MSVCRT.dll_wcscpy]
mov dword [ebp - 0x1c], ecx
mov dword [esi + 8], edx
mov ecx, 0x62b
xor eax, eax
lea edi, [ebp - 0x2340]
lea edx, [ebp - 0x2340]
push 0x4eb864
rep stosd dword es:[edi], eax
push edx
call ebx
lea eax, [ebp - 0x2340]
lea ecx, [ebp - 0xea8]
push eax
push ecx
call ebx
lea edx, [ebp - 0x1f30]
push str.360
push edx
call ebx
lea eax, [ebp - 0x2138]
push 0x4eb840
push eax
call ebx
lea ecx, [ebp - 0xee8]
push 0x4eb838
push ecx
call ebx
mov eax, dword [0x6dcf84]
add esp, 0x28
lea edx, [ebp - 0x2548]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x2548]
lea edx, [ebp - 0xca0]
push ecx
push 0x4eb80c
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [esi + 8]
add esp, 0x10
lea ecx, [ebp - 0x2340]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00407200
lea edx, [ebp - 0x47c]
lea eax, [ebp - 0xa94]
push edx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x40622a
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea ecx, [ebp - 0x450]
push 0x4eb808
push ecx
call edi
add esp, 8
test eax, eax
je 0x406104
lea edx, [ebp - 0x450]
push 0x4eb800
push edx
call edi
add esp, 8
test eax, eax
je 0x406104
test byte [ebp - 0x47c], 0x10
je 0x406104
lea eax, [ebp - 0x450]
lea ecx, [ebp - 0x88c]
push eax
push ecx
push str._sskin_s_skin.ini
lea edx, [ebp - 0x684]
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ax, word [0x4ffec0]
mov ecx, 0x81
mov word [ebp - 0x22c], ax
xor eax, eax
lea edi, [ebp - 0x22a]
add esp, 0x14
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x62b
xor eax, eax
lea edi, [ebp - 0x2340]
lea edx, [ebp - 0xea8]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x450]
mov word [ebp - 0x47e], 0
push ecx
push 0x4eb504
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x684]
lea ecx, [ebp - 0x22c]
push eax
push ecx
mov word [ebp - 0xca2], 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
add esp, 0x18
lea edx, [ebp - 0x22c]
lea eax, [ebp - 0x684]
push 0x103
push edx
push eax
call edi
lea ecx, [ebp - 0x22c]
push 0
push ecx
call fcn.004a7ab0
add esp, 8
test eax, eax
je 0x406104
lea edx, [ebp - 0x22c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0x2340]
push eax
push 0x103
lea edx, [ebp - 0x2340]
push ecx
push edx
push str.NAME
push str.GENERAL
call esi
lea eax, [ebp - 0x22c]
lea ecx, [ebp - 0x2138]
push eax
push 0x103
push ecx
push 0x4ffec0
push str.Author
push str.GENERAL
call esi
lea edx, [ebp - 0x22c]
lea eax, [ebp - 0x1f30]
push edx
push 0x823
push eax
push 0x4ffec0
push str.Comment
push str.GENERAL
call esi
lea ecx, [ebp - 0x22c]
lea edx, [ebp - 0xee8]
push ecx
push 0x1f
push edx
push 0x4ffec0
push str.Version
push str.GENERAL
call esi
lea eax, [ebp - 0x450]
lea ecx, [ebp - 0x88c]
push eax
push ecx
push str._sskin_spreview.png
lea edx, [ebp - 0xca0]
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0xca0]
lea ecx, [ebp - 0x684]
push eax
push ecx
mov word [ebp - 0xa9a], 0
call ebx
add esp, 0x1c
lea edx, [ebp - 0xca0]
lea eax, [ebp - 0x684]
push 0x103
push edx
push eax
call edi
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea ecx, [ebp - 0x2340]
push ecx
call edi
add esp, 4
test eax, eax
jne 0x406088
lea edx, [ebp - 0x450]
lea eax, [ebp - 0x2340]
push edx
push eax
call ebx
add esp, 8
lea ecx, [ebp - 0x2138]
push ecx
call edi
add esp, 4
test eax, eax
jne 0x4060a9
lea edx, [ebp - 0x2138]
push str.Unknown
push edx
call ebx
add esp, 8
lea eax, [ebp - 0xee8]
push eax
call edi
add esp, 4
test eax, eax
jne 0x4060ca
lea ecx, [ebp - 0xee8]
push str.Unknown
push ecx
call ebx
add esp, 8
lea edx, [ebp - 0xca0]
push 0
push edx
call fcn.004a7ab0
add esp, 8
test eax, eax
jne 0x4060e6
mov word [ebp - 0xca0], ax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x2340]
push edx
push 1
lea ecx, [eax + 0xb64]
mov eax, dword [eax + 0xb6c]
push eax
call fcn.00407200
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x47c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405e56
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0xb68]
test eax, eax
jne 0x406150
xor ecx, ecx
mov dword [ebp - 0x14], ecx
jmp 0x406170
mov ecx, dword [ecx + 0xb6c]
sub ecx, eax
mov eax, 0xa604dd25
imul ecx
add edx, ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [ebp - 0x14], edx
mov ecx, edx
lea eax, [ecx - 1]
cmp eax, 1
jle 0x40622a
mov esi, 0x18ac
mov eax, 2
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
cmp eax, ecx
jge 0x40620f
sub ecx, eax
lea ebx, [esi + 0x18ac]
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 0xb68]
lea ecx, [ebx + eax]
lea edx, [esi + eax]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jle 0x4061fa
mov eax, dword [edi + 0xb68]
mov ecx, 0x62b
lea edi, [ebp - 0x3df4]
lea edx, [esi + eax]
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x62b
lea esi, [ebx + eax]
mov eax, dword [ebp - 0x18]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax + 0xb68]
mov edi, ebx
mov ecx, 0x62b
lea esi, [ebp - 0x3df4]
add edi, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
add ebx, 0x18ac
dec eax
mov dword [ebp - 0x24], eax
jne 0x40619b
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
inc eax
lea edx, [ecx - 1]
add esi, 0x18ac
mov dword [ebp - 0x20], eax
lea edi, [eax - 1]
mov dword [ebp - 0x1c], esi
cmp edi, edx
jl 0x40618c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret