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

Disassembly:
push 0xffffffffffffffff
push 0x492a22
mov eax, dword fs:[0]
push eax
sub esp, 0xafc
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0xaf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb190]
xor eax, esp
push eax
lea eax, [esp + 0xb10]
mov dword fs:[0], eax
mov edx, dword [0x49ad10]
mov eax, dword [str.MagicBlue]
mov edi, ecx
mov ecx, dword [0x49ad0c]
push 0x1f4
mov dword [esp + 0x500], edx
mov dword [esp + 0x4f8], eax
mov eax, dword [0x49ad14]
mov dword [esp + 0x4fc], ecx
mov ecx, dword [0x49ad18]
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.00467850
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x91a]
push ecx
mov word [esp + 0x91c], ax
call fcn.00467850
mov esi, dword [edi + 0x14]
add edi, 4
add esp, 0x18
cmp dword [edi + 0xc], esi
jbe 0x40eaa4
call fcn.00467a4e
mov ebp, dword [edi + 0xc]
mov ebx, dword [edi]
cmp ebp, dword [edi + 0x10]
jbe 0x40eab3
call fcn.00467a4e
mov eax, dword [edi]
push esi
push ebx
push ebp
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, edi
call fcn.0040a680
push 0x4bd788
lea eax, [esp + 0x908]
push 0x104
push eax
call fcn.00468345
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 0x40f075
xor ebx, ebx
mov dword [esp + 0x20], ebx
test dword [esp + 0x9c], 0x10
je 0x40ee0d
cmp word [esp + 0xc8], 0x2e
je 0x40ee0d
lea ecx, [esp + 0x4f4]
push ecx
lea edx, [esp + 0xcc]
push edx
call fcn.00467c67
add esp, 8
test eax, eax
je 0x40ee0d
push 0x206
lea ecx, [esp + 0x2f2]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x2f8], ax
call fcn.00467850
push 0x4bd788
lea edx, [esp + 0x2fc]
push 0x104
push edx
call fcn.00468345
lea eax, [esp + 0xe0]
push eax
push 0x4bd788
push str._sSkin_sSkin.ini
push 0x103
lea ecx, [esp + 0x314]
push 0x104
push ecx
call fcn.00467824
lea edx, [esp + 0x31c]
push edx
call fcn.004359e0
add esp, 0x34
test eax, eax
je 0x40ee0d
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 0x40ebf0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x50]
call fcn.00402220
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.00435c20
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.00435c20
add esp, 0x20
mov ecx, dword [esi + 0x14]
mov ebp, 8
mov byte [esp + 0xb18], 2
cmp dword [esi + 0x18], ebp
jb 0x40ec68
mov esi, dword [esi + 4]
jmp 0x40ec6b
add esi, 4
push ecx
mov ecx, dword [eax + 0x14]
push esi
push ecx
push ebx
mov ecx, eax
call fcn.00404b70
test eax, eax
sete bl
cmp dword [esp + 0x44], ebp
jb 0x40ec91
mov edx, dword [esp + 0x30]
push edx
call fcn.004440cb
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 0x40ecc0
mov ecx, dword [esp + 0x68]
push ecx
call fcn.004440cb
add esp, 4
test bl, bl
je 0x40ece1
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.00467850
add esp, 0xc
lea ecx, [esp + 0x2ec]
push ecx
push 0x103
lea edx, [esp + 0x704]
push edx
push 0x49ab28
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 0x40ed35
sub eax, edx
sar eax, 1
je 0x40edd6
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.004068e0
mov ecx, dword [esp + 0x34]
call fcn.0040e430
sub esp, 0x1c
lea eax, [esp + 0x718]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.004068e0
sub esp, 0x1c
lea edx, [esp + 0x100]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
mov byte [esp + 0xb54], 3
call fcn.004068e0
lea eax, [esp + 0x9c]
push eax
mov byte [esp + 0xb54], 0
call fcn.00407680
add esp, 0x3c
push eax
mov ecx, edi
mov byte [esp + 0xb1c], 4
call fcn.0040e2e0
lea ecx, [esp + 0x64]
call fcn.00405120
mov dword [esp + 0xb18], 0xffffffff
cmp dword [esp + 0x60], ebp
jb 0x40edf4
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004440cb
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 0x40eb1d
mov ebp, dword [esp + 0x14]
mov ebx, dword [ebp + 0xac]
cmp ebx, dword [ebp + 0xb0]
jbe 0x40ee3b
call fcn.00467a4e
mov esi, dword [ebp + 0xa0]
jmp 0x40ee50
mov ebp, dword [ebp + 0xb0]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0xac], ebp
jbe 0x40ee67
call fcn.00467a4e
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0xa0]
test esi, esi
je 0x40ee79
cmp esi, eax
je 0x40ee7e
call fcn.00467a4e
cmp ebx, ebp
je 0x40eef8
test esi, esi
jne 0x40eef0
call fcn.00467a4e
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40ee97
call fcn.00467a4e
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.00402120
cmp dword [esp + 0x44], 8
jb 0x40eecf
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004440cb
add esp, 4
test esi, esi
jne 0x40eef4
call fcn.00467a4e
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40eee4
call fcn.00467a4e
mov ebp, dword [esp + 0x14]
add ebx, 0x30
jmp 0x40ee50
mov eax, dword [esi]
jmp 0x40ee8d
mov eax, dword [esi]
jmp 0x40eeda
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 0x40f075
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 0x40ef48
call fcn.00467a4e
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.00402120
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 0x40ef8f
call fcn.00467a4e
mov eax, dword [edi + 0xc]
add eax, esi
push eax
lea ecx, [esp + 0x68]
call fcn.00406850
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 0x40f024
test ebx, ebx
je 0x40f024
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x40efd8
call fcn.00467a4e
mov edx, dword [edi]
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
call fcn.00404570
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.0040a4b0
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x40f00f
call fcn.00467a4e
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.0040e150
mov esi, 8
cmp dword [esp + 0x98], esi
jb 0x40f042
mov eax, dword [esp + 0x84]
push eax
call fcn.004440cb
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 0x40f075
mov edx, dword [esp + 0x68]
push edx
call fcn.004440cb
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.004677ab
add esp, 0xb08
ret