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

Disassembly:
push 0xffffffffffffffff
push 0x4926a2
mov eax, dword fs:[0]
push eax
sub esp, 0xafc
mov eax, dword [0x4ba190]
xor eax, esp
mov dword [esp + 0xaf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba190]
xor eax, esp
push eax
lea eax, [esp + 0xb10]
mov dword fs:[0], eax
mov edx, dword [0x499d10]
mov eax, dword [str.MagicBlue]
mov edi, ecx
mov ecx, dword [0x499d0c]
push 0x1f4
mov dword [esp + 0x500], edx
mov dword [esp + 0x4f8], eax
mov eax, dword [0x499d14]
mov dword [esp + 0x4fc], ecx
mov ecx, dword [0x499d18]
lea edx, [esp + 0x50c]
push 0
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x50c], eax
mov dword [esp + 0x510], ecx
call fcn.00467480
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x91a]
push ecx
mov word [esp + 0x91c], ax
call fcn.00467480
mov esi, dword [edi + 0x14]
add edi, 4
add esp, 0x18
cmp dword [edi + 0xc], esi
jbe 0x40ea74
call fcn.0046767e
mov ebp, dword [edi + 0xc]
mov ebx, dword [edi]
cmp ebp, dword [edi + 0x10]
jbe 0x40ea83
call fcn.0046767e
mov eax, dword [edi]
push esi
push ebx
push ebp
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, edi
call fcn.0040a650
push 0x4bc788
lea eax, [esp + 0x908]
push 0x104
push eax
call fcn.00467f75
add esp, 0xc
push str.Skin.
lea ecx, [esp + 0x908]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x908]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x28], esi
cmp esi, 0xffffffff
je 0x40f045
xor ebx, ebx
mov dword [esp + 0x20], ebx
test dword [esp + 0x9c], 0x10
je 0x40eddd
cmp word [esp + 0xc8], 0x2e
je 0x40eddd
lea ecx, [esp + 0x4f4]
push ecx
lea edx, [esp + 0xcc]
push edx
call fcn.00467897
add esp, 8
test eax, eax
je 0x40eddd
push 0x206
lea ecx, [esp + 0x2f2]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x2f8], ax
call fcn.00467480
push 0x4bc788
lea edx, [esp + 0x2fc]
push 0x104
push edx
call fcn.00467f75
lea eax, [esp + 0xe0]
push eax
push 0x4bc788
push str._sSkin_sSkin.ini
push 0x103
lea ecx, [esp + 0x314]
push 0x104
push ecx
call fcn.0046745c
lea edx, [esp + 0x31c]
push edx
call fcn.004356b0
add esp, 0x34
test eax, eax
je 0x40eddd
xor eax, eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0xc8]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ebc0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x50]
call fcn.00402210
mov edx, dword [esp + 0x14]
push 1
push 1
add edx, 0x1c
push edx
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0xb28], ebx
call fcn.004358f0
mov esi, eax
push 1
push 1
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0xb38], 1
call fcn.004358f0
add esp, 0x20
mov ecx, dword [esi + 0x14]
mov ebp, 8
mov byte [esp + 0xb18], 2
cmp dword [esi + 0x18], ebp
jb 0x40ec38
mov esi, dword [esi + 4]
jmp 0x40ec3b
add esi, 4
push ecx
mov ecx, dword [eax + 0x14]
push esi
push ecx
push ebx
mov ecx, eax
call fcn.00404b10
test eax, eax
sete bl
cmp dword [esp + 0x44], ebp
jb 0x40ec61
mov edx, dword [esp + 0x30]
push edx
call fcn.00443d03
add esp, 4
xor eax, eax
xor esi, esi
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], esi
mov word [esp + 0x30], ax
mov byte [esp + 0xb18], al
cmp dword [esp + 0x7c], ebp
jb 0x40ec90
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00443d03
add esp, 4
test bl, bl
je 0x40ecb1
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], eax
push 0x206
lea eax, [esp + 0x702]
xor edx, edx
push esi
push eax
mov word [esp + 0x708], dx
call fcn.00467480
add esp, 0xc
lea ecx, [esp + 0x2ec]
push ecx
push 0x103
lea edx, [esp + 0x704]
push edx
push 0x499b28
push str.SkinName
push str.NormalDefine
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x6fc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40ed05
sub eax, edx
sar eax, 1
je 0x40eda6
lea eax, [esp + 0x2ec]
push eax
sub esp, 0x1c
lea edx, [esp + 0xe8]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.004068c0
mov ecx, dword [esp + 0x34]
call fcn.0040e400
sub esp, 0x1c
lea eax, [esp + 0x718]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.004068c0
sub esp, 0x1c
lea edx, [esp + 0x100]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
mov byte [esp + 0xb54], 3
call fcn.004068c0
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0xb54], 0
call fcn.00407650
add esp, 0x3c
push eax
mov ecx, edi
mov byte [esp + 0xb1c], 4
call fcn.0040e2b0
lea ecx, [esp + 0x64]
call fcn.004050f0
mov dword [esp + 0xb18], 0xffffffff
cmp dword [esp + 0x60], ebp
jb 0x40edc4
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00443d03
add esp, 4
xor edx, edx
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x60], 7
mov word [esp + 0x4c], dx
xor ebx, ebx
lea eax, [esp + 0x9c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x40eaed
mov ebp, dword [esp + 0x14]
mov ebx, dword [ebp + 0xac]
cmp ebx, dword [ebp + 0xb0]
jbe 0x40ee0b
call fcn.0046767e
mov esi, dword [ebp + 0xa0]
jmp 0x40ee20
mov ebp, dword [ebp + 0xb0]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0xac], ebp
jbe 0x40ee37
call fcn.0046767e
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0xa0]
test esi, esi
je 0x40ee49
cmp esi, eax
je 0x40ee4e
call fcn.0046767e
cmp ebx, ebp
je 0x40eec8
test esi, esi
jne 0x40eec0
call fcn.0046767e
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40ee67
call fcn.0046767e
xor eax, eax
push 0xffffffffffffffff
push eax
push ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
call fcn.00402110
cmp dword [esp + 0x44], 8
jb 0x40ee9f
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00443d03
add esp, 4
test esi, esi
jne 0x40eec4
call fcn.0046767e
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40eeb4
call fcn.0046767e
mov ebp, dword [esp + 0x14]
add ebx, 0x30
jmp 0x40ee20
mov eax, dword [esi]
jmp 0x40ee5d
mov eax, dword [esi]
jmp 0x40eeaa
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40f045
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov ebx, dword [esp + 0x20]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x40ef18
call fcn.0046767e
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x14]
lea esi, [ebx*8]
sub esi, ebx
add esi, esi
add esi, esi
push 0xffffffffffffffff
add esi, esi
add eax, esi
push 0
push eax
add ecx, 0x1c
call fcn.00402110
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40ef5f
call fcn.0046767e
mov eax, dword [edi + 0xc]
add eax, esi
push eax
lea ecx, [esp + 0x68]
call fcn.00406570
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0xb18], 5
cmp ecx, 1
jbe 0x40eff4
test ebx, ebx
je 0x40eff4
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x40efa8
call fcn.0046767e
mov edx, dword [edi]
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
call fcn.004045b0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.0040a480
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x40efdf
call fcn.0046767e
mov eax, dword [edi]
lea ecx, [esp + 0x64]
push ecx
push esi
push eax
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.0040e120
mov esi, 8
cmp dword [esp + 0x98], esi
jb 0x40f012
mov eax, dword [esp + 0x84]
push eax
call fcn.00443d03
add esp, 4
xor ecx, ecx
mov dword [esp + 0x98], 7
mov dword [esp + 0x94], 0
mov word [esp + 0x84], cx
cmp dword [esp + 0x7c], esi
jb 0x40f045
mov edx, dword [esp + 0x68]
push edx
call fcn.00443d03
add esp, 4
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [esp + 0xb10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xaf8]
xor ecx, esp
call fcn.004673e3
add esp, 0xb08
ret