Function at 0x404353
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x50
push esi
push edi
lea ecx, [ebx + 4]
mov dword [ebx], vtable.GamePath.0
call fcn.00402883
lea ecx, [ebx + 8]
call fcn.00416e09
lea ecx, [ebx + 0x1c]
call fcn.00416e09
and dword [esp + 8], 0
mov esi, dword [ebp + 8]
call fcn.0040b0df
push esi
lea eax, [esp + 0x14]
push eax
call fcn.0040b8bd
mov eax, dword [esp + 0x10]
mov edi, dword [eax - 0xc]
lea esi, [esp + 0x10]
call fcn.00405050
cmp byte [eax + edi - 1], 0x5c
jne 0x4043d5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.00404efb
push eax
lea ecx, [ebp + 8]
call fcn.00402143
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.0040285f
push 0x5c
lea ecx, [ebp + 8]
call fcn.0040538b
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x5c
lea ecx, [ebp + 8]
call fcn.00404e5f
push eax
mov dword [esp + 0x44], eax
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [ebp + 8]
call fcn.00404e81
push eax
lea ecx, [ebp + 8]
call fcn.00402143
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040285f
push str.GameLeague_of_Legends.exe
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00404f6d
add esp, 0xc
push dword [eax]
call edi
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
mov dword [esp + 0xc], eax
call fcn.0040285f
mov esi, str.RADS_solutionslol_game_client_sln_releases
push esi
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00404f6d
add esp, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
mov dword [esp + 0x24], eax
call fcn.0040285f
cmp dword [esp + 0xc], 0
je 0x4044bc
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 4]
call fcn.00402143
push str.Game
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00404f6d
add esp, 0xc
push eax
lea ecx, [ebx + 8]
push dword [ecx + 8]
call fcn.00417204
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040285f
xor eax, eax
inc eax
mov dword [ebx + 0x30], eax
mov dword [esp + 8], eax
cmp dword [esp + 0x24], 0
je 0x404640
lea ecx, [esp + 0x44]
call fcn.00416e09
and dword [esp + 0xc], 0
call fcn.0040b0df
push ecx
mov eax, esp
push esi
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.00404f6d
add esp, 0xc
lea esi, [esp + 0x48]
call fcn.0040b609
xor esi, esi
cmp dword [esp + 0x4c], esi
je 0x404620
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 4]
call fcn.00402143
cmp dword [esp + 0x4c], esi
mov dword [esp + 8], esi
jle 0x404620
push str.deployLeague_of_Legends.exe
push dword [esp + 0xc]
lea ecx, [esp + 0x4c]
call fcn.00405353
push eax
mov esi, str.RADS_solutionslol_game_client_sln_releases_
push esi
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00404f6d
add esp, 0xc
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00404f34
add esp, 0xc
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00404f6d
add esp, 0xc
push dword [eax]
call edi
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
mov dword [esp + 0x24], eax
call fcn.0040285f
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff0
call fcn.0040285f
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.0040285f
cmp dword [esp + 0x24], 0
je 0x40460c
push str.deploy
push dword [esp + 0xc]
lea ecx, [esp + 0x4c]
call fcn.00405353
push eax
push esi
lea eax, [ebp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00404f6d
add esp, 0xc
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00404f34
add esp, 0xc
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00404f6d
add esp, 0xc
push eax
lea ecx, [ebx + 8]
push dword [ecx + 8]
call fcn.00417204
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.0040285f
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
call fcn.0040285f
mov ecx, dword [esp + 0x3c]
add ecx, 0xfffffff0
call fcn.0040285f
mov dword [esp + 0xc], 1
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x4c]
jl 0x40451a
xor esi, esi
xor eax, eax
inc eax
mov dword [ebx + 0x34], eax
mov dword [esp + 8], eax
cmp dword [esp + 0xc], esi
jne 0x404637
mov dword [ebx + 0x34], esi
mov dword [esp + 8], esi
lea ecx, [esp + 0x44]
call fcn.0041710b
xor eax, eax
cmp dword [esp + 0x40], eax
jle 0x404652
cmp dword [esp + 8], eax
je 0x4043e5
cmp dword [esp + 8], 1
jne 0x404748
mov dword [esp + 8], eax
mov edi, str.GAME_PATH_
mov esi, str.CONFIG
call fcn.0040b0df
push dword [esp + 8]
lea eax, [esp + 0x44]
push eax
call fcn.0040b937
push ecx
mov ecx, esp
push eax
push edi
push ecx
call fcn.00404faa
pop ecx
pop ecx
mov ecx, esp
push esi
call fcn.00402655
call fcn.00402ca1
push eax
lea eax, [esp + 0x18]
call fcn.00404ab9
mov ecx, dword [esp + 0x40]
add ecx, 0xfffffff0
call fcn.0040285f
push 0x44af7c
lea ecx, [esp + 0x10]
call fcn.00401c92
test eax, eax
je 0x4046e9
push dword [esp + 0xc]
lea ecx, [ebx + 4]
call fcn.00401c92
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
test eax, eax
je 0x404743
call fcn.0040285f
inc dword [esp + 8]
cmp dword [esp + 8], 0xa
jl 0x40466b
jmp 0x4046fd
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
mov dword [esp + 0x40], eax
call fcn.0040285f
push ecx
lea eax, [ebx + 4]
mov ecx, esp
push eax
call fcn.004020b8
call fcn.0040b0df
push dword [esp + 0x44]
lea eax, [esp + 0x44]
push eax
call fcn.0040b937
push ecx
mov ecx, esp
push eax
push edi
push ecx
call fcn.00404faa
pop ecx
pop ecx
mov ecx, esp
push esi
call fcn.00402655
call fcn.00402ca1
push eax
call fcn.00404b09
mov ecx, dword [esp + 0x3c]
add ecx, 0xfffffff0
call fcn.0040285f
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0040285f
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040285f
pop edi
mov eax, ebx
pop esi
mov esp, ebp
pop ebp
ret 4