Function at 0x4c8610
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eb866
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x6670f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ebx, [ecx + 0x28]
mov edi, dword [ebx + 4]
xorps xmm0, xmm0
mov esi, dword [ebx]
movlpd qword [ebp - 0x60], xmm0
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x94], ebx
cmp esi, edi
je 0x4c8675
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
add esi, 0x30
cmp esi, edi
jne 0x4c8664
mov esi, dword [ebx]
mov dword [ebx + 4], esi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
nop dword [eax]
mov ebx, dword [ebp + ebx*4 - 0x60]
test ebx, ebx
je 0x4c8e06
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c8e06
push 0
push 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.004cde10
mov edi, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
lea ecx, [ebp - 0xe0]
mov dword [ebp - 4], 0
call fcn.00458450
push 0x62b28c
push ebx
mov byte [ebp - 4], 1
call fcn.005afb9e
mov esi, eax
add esp, 8
test esi, esi
je 0x4c8da4
push 1
push esi
lea ecx, [ebp - 0xe0]
call fcn.004589e0
push esi
mov bl, al
call fcn.005afce7
add esp, 4
test bl, bl
je 0x4c8da4
lea ecx, [ebp - 0xe0]
call fcn.00457a50
push str.Skins
mov ecx, eax
call fcn.00457960
mov dword [ebp - 0x98], eax
test eax, eax
je 0x4c8da4
mov ecx, eax
call fcn.00457930
mov ebx, eax
mov dword [ebp - 0x58], ebx
test ebx, ebx
je 0x4c8d2d
nop word [eax + eax]
mov dword [ebp - 0x90], vtable.SKIN_LIST_INFO.0
call fcn.004bfba0
mov ecx, eax
test ecx, ecx
je 0x4c8e39
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c], eax
call fcn.004bfba0
mov ecx, eax
test ecx, ecx
je 0x4c8e39
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x88], eax
call fcn.004bfba0
mov ecx, eax
test ecx, ecx
je 0x4c8e39
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x84], eax
call fcn.004bfba0
mov ecx, eax
test ecx, ecx
je 0x4c8e39
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x80], eax
call fcn.004bd3a0
lea ecx, [ebp - 0x88]
call fcn.004bd3a0
lea ecx, [ebp - 0x84]
call fcn.004bd3a0
lea ecx, [ebp - 0x80]
call fcn.004bd3a0
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x90], vtable.MENU_SKIN_ST.0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x54]
mov byte [ebp - 4], 2
mov ecx, dword [ebp + edx*4 - 0x60]
cmp ecx, dword [ebp + 8]
jne 0x4c8830
mov dword [ebp - 0x74], 1
jmp 0x4c883b
xor edx, edx
cmp ecx, dword [ebp + 0xc]
cmove eax, edx
mov dword [ebp - 0x74], eax
lea eax, [ebx + 0x2c]
xor ecx, ecx
mov ebx, dword [eax + 0x20]
cmp ebx, eax
cmove ebx, ecx
mov dword [ebp - 0x44], ebx
test ebx, ebx
je 0x4c8bd9
mov edx, dword [ebx + 0x14]
add edx, 8
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c8870
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004b5bb0
mov edx, dword [ebx + 0x18]
add edx, 8
mov byte [ebp - 4], 3
mov eax, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c88a4
sub eax, esi
lea ecx, [ebp - 0x40]
push eax
push edx
call fcn.004b5bb0
cmp dword [ebp - 0x2c], 0x10
lea edi, [ebp - 0x40]
mov byte [ebp - 4], 4
jb 0x4c88cf
mov edi, dword [ebp - 0x40]
test edi, edi
jne 0x4c88cf
xor ebx, ebx
jmp 0x4c8925
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050f771
mov ebx, eax
lea eax, [esi*2 + 2]
push eax
push 0
push ebx
call fcn.0058c8f0
add esp, 0x10
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
cmp ecx, 0x10
mov edi, dword [ebp - 0x18]
cmovae eax, esi
cmp edi, 8
jne 0x4c897f
cmp dword [eax], 0x656c6946
jne 0x4c897f
cmp dword [eax + 4], 0x656d614e
jne 0x4c897f
test ebx, ebx
jne 0x4c8955
xor ecx, ecx
jmp 0x4c896f
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c8960
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x84]
call fcn.004c0470
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp edi, 8
jne 0x4c89cc
cmp dword [eax], 0x6e696b53
jne 0x4c89cc
cmp dword [eax + 4], 0x656d614e
jne 0x4c89cc
test ebx, ebx
jne 0x4c89a6
xor ecx, ecx
jmp 0x4c89bf
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c89b0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x80]
call fcn.004c0470
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp edi, 8
jne 0x4c8a1f
cmp dword [eax], 0x656c6946
jne 0x4c8a1f
cmp dword [eax + 4], 0x68746150
jne 0x4c8a1f
test ebx, ebx
jne 0x4c89f3
xor ecx, ecx
jmp 0x4c8a0f
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c8a00
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x88]
call fcn.004c0470
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp edi, 4
jne 0x4c8a5e
cmp dword [eax], 0x44495547
jne 0x4c8a5e
test ebx, ebx
jne 0x4c8a3d
xor ecx, ecx
jmp 0x4c8a51
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c8a42
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x8c]
call fcn.004c0470
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, esi
cmp edi, 7
jne 0x4c8a93
cmp dword [ecx], 0x72467349
jne 0x4c8a93
cmp word [ecx + 4], 0x6d61
jne 0x4c8a93
cmp byte [ecx + 6], 0x65
jne 0x4c8a93
push 0xa
push 0
push ebx
call fcn.005af8b0
add esp, 0xc
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, esi
cmp edi, 9
jne 0x4c8ace
cmp dword [eax], 0x62616e45
jne 0x4c8ace
cmp dword [eax + 4], 0x7355656c
jne 0x4c8ace
cmp byte [eax + 8], 0x65
jne 0x4c8ace
push 0xa
push 0
push ebx
call fcn.005af8b0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x7c], eax
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp edi, 0xa
jne 0x4c8b07
cmp dword [eax], 0x7473614c
jne 0x4c8b07
cmp dword [eax + 4], 0x69646f4d
jne 0x4c8b07
cmp word [eax + 8], 0x7966
jne 0x4c8b07
push edi
push 0
push ebx
call fcn.005af8b0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x6c], eax
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp edi, 8
jne 0x4c8b36
cmp dword [eax], 0x6e696b53
jne 0x4c8b36
cmp dword [eax + 4], 0x65707954
jne 0x4c8b36
push 0xa
push 0
push ebx
call fcn.005af8b0
add esp, 0xc
mov dword [ebp - 0x70], eax
test ebx, ebx
je 0x4c8b43
push ebx
call fcn.0050edcc
add esp, 4
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x4c8b7b
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c8b71
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c8e43
push edx
push ecx
call fcn.0050ed4e
add esp, 8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x4c8bc4
lea edx, [eax + 1]
mov eax, esi
cmp edx, 0x1000
jb 0x4c8bba
mov esi, dword [esi - 4]
add edx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c8e43
push edx
push esi
call fcn.0050ed4e
add esp, 8
mov ecx, dword [ebp - 0x44]
call fcn.00459220
mov ebx, eax
mov dword [ebp - 0x44], eax
test ebx, ebx
jne 0x4c8853
mov eax, dword [ebp - 0x88]
add eax, 0xfffffff0
push eax
call fcn.004bfdc0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x44], eax
mov edi, dword [eax - 0xc]
mov byte [ebp - 4], 5
test edi, edi
jle 0x4c8c59
lea ecx, [edi - 1]
test ecx, ecx
js 0x4c8e48
cmp ecx, edi
jg 0x4c8e48
cmp word [eax + ecx*2], 0x5c
je 0x4c8c59
lea esi, [edi + 1]
test esi, esi
js 0x4c8e48
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x4c8c3e
push esi
lea ecx, [ebp - 0x44]
call fcn.004b4690
mov eax, dword [ebp - 0x44]
mov ecx, 0x5c
mov word [eax + edi*2], cx
cmp esi, dword [eax - 8]
jg 0x4c8e48
xor ecx, ecx
mov dword [eax - 0xc], esi
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x44]
push dword [eax - 0xc]
push eax
call fcn.004bdc50
mov esi, dword [ebp - 0x44]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c8cab
mov ebx, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
push ecx
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x4c8c9e
mov ecx, eax
call fcn.004c2ad0
add dword [ebx + 4], 0x30
mov edi, dword [ebp - 0x50]
jmp 0x4c8ce3
push eax
mov ecx, ebx
call fcn.004c0f90
mov edi, dword [ebp - 0x50]
jmp 0x4c8ce3
mov ebx, dword [ebp - 0x50]
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x4c]
mov edi, dword [ebx + 4]
push edi
push ebx
call fcn.004c0a80
mov edx, dword [ebp - 0x48]
mov ecx, eax
mov eax, 0x15555554
sub eax, edx
cmp eax, 1
jb 0x4c8e52
mov dword [ebx + 4], ecx
inc edx
mov dword [edi], ecx
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x50], edi
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c8cff
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
mov dword [ebp - 0x90], vtable.MENU_SKIN_ST.0
call fcn.004c3580
mov ecx, dword [ebp - 0x58]
call fcn.004579a0
mov ebx, eax
mov dword [ebp - 0x58], ebx
test ebx, ebx
jne 0x4c8750
cmp dword [ebp - 0x48], 0
jbe 0x4c8da4
mov esi, dword [edi]
cmp esi, edi
je 0x4c8d50
mov ebx, dword [ebp - 0x98]
nop
push dword [esi + 8]
mov ecx, ebx
call fcn.004576e0
mov esi, dword [esi]
cmp esi, edi
jne 0x4c8d40
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
mov dword [ebp - 0x48], 0
cmp eax, edi
je 0x4c8d75
mov esi, dword [eax]
push 0xc
push eax
call fcn.0050ed4e
add esp, 8
mov eax, esi
cmp esi, edi
jne 0x4c8d62
mov eax, dword [ebp - 0x54]
push 0x604c60
push dword [ebp + eax*4 - 0x60]
call fcn.005afb9e
mov esi, eax
add esp, 8
test esi, esi
je 0x4c8da4
push esi
lea ecx, [ebp - 0xe0]
call fcn.00458fa0
push esi
call fcn.005afce7
add esp, 4
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xe0], vtable.TiXmlDocument.0
cmp eax, 0x66d4a8
je 0x4c8dc4
push eax
call fcn.0050edcc
add esp, 4
lea ecx, [ebp - 0xe0]
call fcn.00457200
mov eax, dword [edi]
mov dword [edi], edi
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 4], edi
mov dword [ebp - 0x48], 0
cmp eax, edi
je 0x4c8dfb
mov esi, dword [eax]
push 0xc
push eax
call fcn.0050ed4e
add esp, 8
mov eax, esi
cmp esi, edi
jne 0x4c8de8
push 0xc
push edi
call fcn.0050ed4e
add esp, 8
mov ebx, dword [ebp - 0x54]
inc ebx
mov dword [ebp - 0x54], ebx
cmp ebx, 2
jl 0x4c8680
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050ed5c
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004b3510
call fcn.005978c6
push 0x80070057
call fcn.004b3510
push str.list_T__too_long
call fcn.004f32a7
int3