Function at 0x4612cd
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
mov esi, eax
mov eax, dword [0x6bbe20]
push edi
mov ecx, 0x6bbe20
call dword [eax + 0xc]
add eax, 0x10
xor ebx, ebx
mov dword [esp + 0x10], eax
cmp esi, ebx
je 0x461359
cmp word [esi], bx
je 0x461359
push 6
push str.res:__
push esi
call fcn.00438eec
add esp, 0xc
test eax, eax
jne 0x461323
push esi
call fcn.004dcdd5
cmp eax, ebx
je 0x461359
mov eax, esi
call fcn.0042513c
push eax
push esi
jmp 0x461360
call fcn.004616fa
mov edi, eax
call fcn.0042513c
push eax
push edi
lea eax, [esp + 0x18]
call fcn.0040aa23
push esi
push str.Skin_s
lea ecx, [esp + 0x18]
call fcn.004617e2
pop ecx
pop ecx
push dword [esp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x461369
push 0x17
push str.res:__SKIN_DEFAULT_SKIN
lea eax, [esp + 0x18]
call fcn.0040aa23
lea eax, [esp + 0x18]
push str.360skin.xml
push eax
lea eax, [esp + 0x18]
call fcn.0046184e
mov eax, dword [0x6bcd24]
pop ecx
pop ecx
push ebx
push ebx
lea edx, [esp + 0x1c]
push edx
mov esi, 0x63ec60
push esi
push dword [esp + 0x28]
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
test eax, eax
js 0x4616e5
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push esi
push str.SkinInfo
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xf4]
test eax, eax
js 0x4616d7
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push dword [0x6bec68]
push eax
call dword [ecx + 0x54]
mov eax, dword [esp + 0xc]
push dword [0x6bec64]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
push dword [0x6bec4c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
mov ecx, dword [ebp + 8]
push eax
mov dword [esp + 0x20], eax
call fcn.00467c46
mov esi, eax
cmp esi, ebx
je 0x461585
push dword [esp + 0x30]
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x418]
push eax
call fcn.004dcf37
mov ebx, 0x104
test eax, eax
js 0x461521
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
mov eax, dword [esp + 0xc]
push dword [0x6bec60]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
movzx eax, al
mov dword [esi + 0x620], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
push dword [0x6bec6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
mov dword [esi + 0x624], eax
mov eax, dword [esp + 0xc]
push dword [0x6bec70]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
mov dword [esi + 0x628], eax
mov eax, dword [esp + 0xc]
push dword [0x6bec74]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
mov dword [esi + 0x62c], eax
mov eax, dword [esp + 0xc]
push dword [0x6bec78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
mov dword [esi + 0x630], eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push dword [0x6bec48]
push eax
call dword [ecx + 0x54]
push dword [esp + 0x40]
mov edi, 0x640018
push edi
lea eax, [esi + 8]
push ebx
push eax
call fcn.00467cd1
push dword [esp + 0x40]
lea eax, [esi + 0x418]
push edi
push ebx
push eax
call fcn.00467cd1
add esp, 0x20
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x461526
mov edi, 0x640018
push dword [esp + 0x10]
lea eax, [esi + 0x210]
push edi
push ebx
push eax
call fcn.00467cd1
add esp, 0x10
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x461554
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x461562
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.0040acc3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.0040acc3
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x634
call fcn.004013b3
mov esi, eax
pop ecx
mov dword [esp + 0x24], esi
cmp esi, ebx
je 0x4616cc
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
mov eax, dword [esp + 0xc]
push dword [0x6bec60]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x94]
movzx eax, al
mov dword [esi + 0x620], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
push dword [0x6bec6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
mov dword [esi + 0x624], eax
mov eax, dword [esp + 0xc]
push dword [0x6bec70]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
mov dword [esi + 0x628], eax
mov eax, dword [esp + 0xc]
push dword [0x6bec74]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
mov dword [esi + 0x62c], eax
mov eax, dword [esp + 0xc]
push dword [0x6bec78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
mov dword [esi + 0x630], eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push dword [0x6bec48]
push eax
call dword [ecx + 0x54]
push dword [esp + 0x40]
mov edi, 0x640018
push edi
mov ebx, 0x104
lea eax, [esi + 8]
push ebx
push eax
call fcn.00467cd1
push dword [esp + 0x20]
lea eax, [esi + 0x210]
push edi
push ebx
push eax
call fcn.00467cd1
push dword [esp + 0x50]
add esi, 0x418
push edi
push ebx
push esi
call fcn.00467cd1
mov esi, dword [ebp + 8]
add esp, 0x30
add esi, 0x10
lea eax, [esp + 0x24]
call fcn.00467cef
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x38]
push eax
call esi
lea eax, [esp + 0x28]
push eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4616b5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4616c3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x24]
jmp 0x461562
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4616e5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4616f3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor esi, esi
jmp 0x461562