Function at 0x403894
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x20]
mov eax, dword [esi + 0x1c]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x1c], esi
jg 0x403d5d
call fcn.0040d7fc
push eax
lea ecx, [ebp - 4]
call fcn.0040283a
push dword [edi + 0x24]
call fcn.00402ca1
push dword [eax + 0x10]
lea eax, [ebp - 4]
push str._sdata__s.ini
push eax
call fcn.0040226e
add esp, 0x10
call fcn.0040d7fc
push eax
lea ecx, [ebp - 0xc]
call fcn.0040283a
call fcn.00402ca1
push dword [eax + 0x10]
lea eax, [ebp - 0xc]
push str._schromas.ini
push eax
call fcn.0040226e
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push dword [ebp - 4]
call edi
test eax, eax
jne 0x40392c
call fcn.00402ca1
push dword [eax + 0x10]
lea eax, [ebp - 4]
push str._sdata_EN.ini
push eax
call fcn.0040226e
add esp, 0xc
push dword [ebp - 4]
call edi
test eax, eax
lea eax, [ebp - 4]
jne 0x403965
push eax
lea eax, [ebp + 8]
push str.Not_Found
push eax
call fcn.00404faa
add esp, 0xc
push ebx
push ebx
push dword [eax]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040285f
jmp 0x403d47
push ecx
mov ecx, esp
push eax
call fcn.004020b8
push ecx
mov ecx, esp
push str.tong
call fcn.00402655
push ecx
lea eax, [esi + 8]
mov ecx, esp
push eax
mov dword [ebp - 8], eax
call fcn.004020b8
call fcn.0040b0df
lea ebx, [ebp - 0x20]
call fcn.0040b685
push dword [eax]
call fcn.0042bddc
pop ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov dword [ebp - 0x14], eax
call fcn.0040285f
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
jle 0x403a93
push 0x20
call fcn.0040d5d1
mov edi, eax
pop ecx
test edi, edi
je 0x4039d9
lea ecx, [edi + 8]
mov dword [edi], vtable.ChampionSkin.0
call fcn.00402883
jmp 0x4039db
xor edi, edi
call fcn.0040d7fc
push eax
lea ecx, [ebp - 0x20]
call fcn.0040283a
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push 0x44b52c
push eax
call fcn.0040226e
pop ecx
pop ecx
lea eax, [ebp - 4]
mov ecx, esp
push eax
call fcn.004020b8
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
push eax
call fcn.004020b8
push ecx
mov ecx, esp
push dword [ebp - 8]
call fcn.004020b8
call fcn.0040b0df
lea ebx, [ebp - 0x18]
call fcn.0040b685
mov eax, dword [ebp - 0x10]
mov dword [edi + 4], eax
mov eax, ebx
lea ecx, [edi + 8]
push eax
call fcn.00402143
mov ebx, str.Color
push ebx
xor ecx, ecx
lea esi, [ebp - 0x18]
call fcn.00404e2e
test eax, eax
jge 0x403a60
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x1c]
add ecx, 0x14
push edi
push eax
call fcn.00416d2d
push ebx
xor ecx, ecx
lea esi, [ebp - 0x18]
call fcn.00404e2e
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040285f
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040285f
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jl 0x4039bb
mov esi, dword [ebp - 0x1c]
xor edi, edi
push ecx
lea eax, [ebp - 0xc]
mov ecx, esp
push eax
call fcn.004020b8
call fcn.0040b0df
push ecx
mov eax, esp
push edi
push eax
call fcn.0040b937
push ecx
mov ecx, esp
push dword [ebp - 8]
call fcn.004020b8
call fcn.0040b0df
lea ebx, [ebp - 0x14]
call fcn.0040b685
push ecx
lea eax, [ebp - 0xc]
mov ecx, esp
push eax
call fcn.004020b8
call fcn.0040b0df
push ecx
mov ebx, esp
push 0x44b1d8
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.0040b937
push eax
push ebx
call fcn.00404f6d
pop ecx
pop ecx
mov ecx, esp
push dword [ebp - 8]
call fcn.004020b8
call fcn.0040b0df
lea ebx, [ebp - 0x18]
call fcn.0040b685
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040285f
push ecx
lea eax, [ebp - 0xc]
mov ecx, esp
push eax
call fcn.004020b8
call fcn.0040b0df
push ecx
mov ebx, esp
push 0x44b1e0
push edi
lea eax, [ebp - 0x24]
push eax
call fcn.0040b937
push eax
push ebx
call fcn.00404f6d
pop ecx
pop ecx
mov ecx, esp
push dword [ebp - 8]
call fcn.004020b8
call fcn.0040b0df
lea ebx, [ebp - 0x20]
call fcn.0040b685
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040285f
mov ebx, 0x44af7c
push ebx
lea ecx, [ebp - 0x14]
call fcn.00401c92
test eax, eax
je 0x403bf1
push ebx
lea ecx, [ebp - 0x18]
call fcn.00401c92
test eax, eax
je 0x403bf1
push ebx
lea ecx, [ebp - 0x20]
call fcn.00401c92
test eax, eax
je 0x403bf1
push 0x20
call fcn.0040d5d1
mov esi, eax
pop ecx
test esi, esi
je 0x403bae
lea ecx, [esi + 8]
mov dword [esi], vtable.ChampionSkin.0
call fcn.00402883
jmp 0x403bb0
xor esi, esi
lea eax, [ebp - 0x14]
lea ecx, [esi + 8]
push eax
mov dword [esi + 4], edi
mov dword [esi + 0x14], 1
call fcn.00402143
push dword [ebp - 0x18]
call fcn.0042bddc
push dword [ebp - 0x20]
mov dword [esi + 0x18], eax
call fcn.0042bddc
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
mov dword [esi + 0x1c], eax
mov eax, dword [ecx + 8]
push esi
push eax
call fcn.00416d2d
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040285f
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040285f
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040285f
inc edi
cmp edi, 0x64
jl 0x403a95
mov eax, dword [ebp + 8]
call fcn.004042db
call fcn.00402ca1
push dword [eax + 0x10]
lea eax, [ebp - 4]
push str._sSkinCustom.ini
push eax
call fcn.0040226e
add esp, 0xc
push ecx
lea eax, [ebp - 4]
mov ecx, esp
push eax
call fcn.004020b8
push ecx
mov ecx, esp
push str.tong
call fcn.00402655
push ecx
mov ecx, esp
push dword [ebp - 8]
call fcn.004020b8
call fcn.0040b0df
lea ebx, [ebp + 8]
call fcn.0040b685
push dword [eax]
call fcn.0042bddc
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov dword [ebp - 0x14], eax
call fcn.0040285f
xor edi, edi
cmp dword [ebp - 0x14], edi
jle 0x403d47
add esi, 0x14
mov dword [ebp - 0x24], esi
push 0x20
call fcn.0040d5d1
mov esi, eax
pop ecx
test esi, esi
je 0x403cb3
lea ecx, [esi + 8]
mov dword [esi], vtable.ChampionSkin.0
call fcn.00402883
jmp 0x403cb5
xor esi, esi
call fcn.0040d7fc
push eax
lea ecx, [ebp + 8]
call fcn.0040283a
push edi
lea eax, [ebp + 8]
push 0x44b52c
push eax
call fcn.0040226e
pop ecx
pop ecx
lea eax, [ebp - 4]
mov ecx, esp
push eax
call fcn.004020b8
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004020b8
push ecx
mov ecx, esp
push dword [ebp - 8]
call fcn.004020b8
call fcn.0040b0df
lea ebx, [ebp - 0x20]
call fcn.0040b685
lea eax, [edi + 0x64]
mov dword [esi + 4], eax
mov eax, ebx
push eax
lea ecx, [esi + 8]
mov dword [esi + 0x10], 1
call fcn.00402143
mov ecx, dword [ebp - 0x24]
push esi
push dword [ecx + 8]
call fcn.00416d2d
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040285f
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040285f
inc edi
cmp edi, dword [ebp - 0x14]
jl 0x403c95
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.0040285f
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.0040285f
pop edi
pop esi
pop ebx
leave
ret 4