Function at 0x4da7d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eca73
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
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 - 0x8c], xmm0
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], ebx
cmp esi, edi
je 0x4da841
nop dword [eax]
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
add esi, 0x28
cmp esi, edi
jne 0x4da830
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 - 0x8c]
test ebx, ebx
je 0x4db00e
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4db00e
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 - 0xd8]
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 0x4dafa7
push 1
push esi
lea ecx, [ebp - 0xd8]
call fcn.004589e0
push esi
mov bl, al
call fcn.005afce7
add esp, 4
test bl, bl
je 0x4dafa7
lea ecx, [ebp - 0xd8]
call fcn.00457a50
push str.Skins
mov ecx, eax
call fcn.00457960
mov dword [ebp - 0x90], eax
test eax, eax
je 0x4dafa7
mov ecx, eax
call fcn.00457930
mov ebx, eax
mov dword [ebp - 0x58], ebx
test ebx, ebx
je 0x4daf2e
nop dword [eax + eax]
mov dword [ebp - 0x80], vtable.SKIN_LIST_INFO.0
call fcn.004b4040
mov ecx, eax
test ecx, ecx
je 0x4db041
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x7c], eax
call fcn.004b4040
mov ecx, eax
test ecx, ecx
je 0x4db041
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
call fcn.004b4040
mov ecx, eax
test ecx, ecx
je 0x4db041
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x74], eax
call fcn.004b4040
mov ecx, eax
test ecx, ecx
je 0x4db041
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x70], eax
call fcn.004bd3a0
lea ecx, [ebp - 0x78]
call fcn.004bd3a0
lea ecx, [ebp - 0x74]
call fcn.004bd3a0
lea ecx, [ebp - 0x70]
call fcn.004bd3a0
xor eax, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x54]
mov byte [ebp - 4], 2
mov ecx, dword [ebp + edx*4 - 0x8c]
cmp ecx, dword [ebp + 8]
jne 0x4da9de
mov dword [ebp - 0x64], 1
jmp 0x4da9e9
xor edx, edx
cmp ecx, dword [ebp + 0xc]
cmove eax, edx
mov dword [ebp - 0x64], 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 0x4dad84
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]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4daa20
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 0x4daa54
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 0x4daa7f
mov edi, dword [ebp - 0x40]
test edi, edi
jne 0x4daa7f
xor ebx, ebx
jmp 0x4daad5
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 0x4dab2c
cmp dword [eax], 0x656c6946
jne 0x4dab2c
cmp dword [eax + 4], 0x656d614e
jne 0x4dab2c
test ebx, ebx
jne 0x4dab05
xor ecx, ecx
jmp 0x4dab1f
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4dab10
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x74]
call fcn.004c0470
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp edi, 8
jne 0x4dab7c
cmp dword [eax], 0x6e696b53
jne 0x4dab7c
cmp dword [eax + 4], 0x656d614e
jne 0x4dab7c
test ebx, ebx
jne 0x4dab53
xor ecx, ecx
jmp 0x4dab6f
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4dab60
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x70]
call fcn.004c0470
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp edi, 8
jne 0x4dabcc
cmp dword [eax], 0x656c6946
jne 0x4dabcc
cmp dword [eax + 4], 0x68746150
jne 0x4dabcc
test ebx, ebx
jne 0x4daba3
xor ecx, ecx
jmp 0x4dabbf
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4dabb0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x78]
call fcn.004c0470
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp edi, 4
jne 0x4dac09
cmp dword [eax], 0x44495547
jne 0x4dac09
test ebx, ebx
jne 0x4dabea
xor ecx, ecx
jmp 0x4dabff
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4dabf0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x7c]
call fcn.004c0470
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, esi
cmp edi, 7
jne 0x4dac3e
cmp dword [ecx], 0x72467349
jne 0x4dac3e
cmp word [ecx + 4], 0x6d61
jne 0x4dac3e
cmp byte [ecx + 6], 0x65
jne 0x4dac3e
push 0xa
push 0
push ebx
call fcn.005af8b0
add esp, 0xc
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, esi
cmp edi, 9
jne 0x4dac79
cmp dword [eax], 0x62616e45
jne 0x4dac79
cmp dword [eax + 4], 0x7355656c
jne 0x4dac79
cmp byte [eax + 8], 0x65
jne 0x4dac79
push 0xa
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, 0xa
jne 0x4dacb2
cmp dword [eax], 0x7473614c
jne 0x4dacb2
cmp dword [eax + 4], 0x69646f4d
jne 0x4dacb2
cmp word [eax + 8], 0x7966
jne 0x4dacb2
push edi
push 0
push ebx
call fcn.005af8b0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x5c], eax
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
cmp edi, 8
jne 0x4dace1
cmp dword [eax], 0x6e696b53
jne 0x4dace1
cmp dword [eax + 4], 0x65707954
jne 0x4dace1
push 0xa
push 0
push ebx
call fcn.005af8b0
add esp, 0xc
mov dword [ebp - 0x60], eax
test ebx, ebx
je 0x4dacee
push ebx
call fcn.0050edcc
add esp, 4
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x4dad26
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4dad1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4db04b
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 0x4dad6f
lea edx, [eax + 1]
mov eax, esi
cmp edx, 0x1000
jb 0x4dad65
mov esi, dword [esi - 4]
add edx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4db04b
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 0x4daa01
mov ebx, dword [ebp - 0x78]
lea eax, [ebx - 0x10]
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 0x4dae01
lea ecx, [edi - 1]
test ecx, ecx
js 0x4db050
cmp ecx, edi
jg 0x4db050
cmp word [eax + ecx*2], 0x5c
je 0x4dae01
lea esi, [edi + 1]
test esi, esi
js 0x4db050
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x4dade6
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 0x4db050
xor ecx, ecx
mov dword [eax - 0xc], esi
mov word [eax + esi*2], cx
mov edi, dword [ebp - 0x74]
lea ecx, [ebp - 0x44]
push dword [edi - 0xc]
push edi
call fcn.004bdc50
mov esi, dword [ebp - 0x44]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4dae52
mov ecx, dword [ebp - 0x84]
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x4dae43
lea ecx, [ebp - 0x80]
push ecx
mov ecx, eax
call fcn.004d6160
mov eax, dword [ebp - 0x84]
add dword [eax + 4], 0x28
jmp 0x4dae90
lea edx, [ebp - 0x80]
push edx
push eax
call fcn.004d5690
mov edi, dword [ebp - 0x74]
jmp 0x4dae8d
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x4c]
mov ebx, dword [eax + 4]
push ebx
push eax
call fcn.004c0a80
mov edx, dword [ebp - 0x48]
mov ecx, eax
mov eax, 0x15555554
sub eax, edx
cmp eax, 1
jb 0x4db05a
mov eax, dword [ebp - 0x50]
inc edx
mov dword [ebp - 0x48], edx
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x4c]
mov dword [ebx], ecx
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x78]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4daeac
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x70]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4daecb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4daee3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4daefb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x7c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4daf16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x58]
call fcn.004579a0
mov ebx, eax
mov dword [ebp - 0x58], ebx
test ebx, ebx
jne 0x4da920
mov edi, dword [ebp - 0x50]
cmp dword [ebp - 0x48], 0
jbe 0x4dafa7
mov esi, dword [edi]
cmp esi, edi
je 0x4daf50
mov ebx, dword [ebp - 0x90]
push dword [esi + 8]
mov ecx, ebx
call fcn.004576e0
mov esi, dword [esi]
cmp esi, edi
jne 0x4daf40
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
mov dword [ebp - 0x48], 0
cmp eax, edi
je 0x4daf75
mov esi, dword [eax]
push 0xc
push eax
call fcn.0050ed4e
add esp, 8
mov eax, esi
cmp esi, edi
jne 0x4daf62
mov eax, dword [ebp - 0x54]
push 0x604c60
push dword [ebp + eax*4 - 0x8c]
call fcn.005afb9e
mov esi, eax
add esp, 8
test esi, esi
je 0x4dafa7
push esi
lea ecx, [ebp - 0xd8]
call fcn.00458fa0
push esi
call fcn.005afce7
add esp, 4
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xd8], vtable.TiXmlDocument.0
cmp eax, 0x66d4a8
je 0x4dafc7
push eax
call fcn.0050edcc
add esp, 4
lea ecx, [ebp - 0xd8]
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 0x4db003
nop dword [eax + eax]
mov esi, dword [eax]
push 0xc
push eax
call fcn.0050ed4e
add esp, 8
mov eax, esi
cmp esi, edi
jne 0x4daff0
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 0x4da850
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