Function at 0x49e4bf
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
and dword [ebp - 0x10], 0
call fcn.00417fc6
add eax, 4
mov dword [ebp - 0x18], eax
push 0
push 0x4c9244
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call dword [eax + 0x18]
mov dword [ebp - 0x3c], eax
cmp dword [ebp + 0xc], 0
jne 0x49e6e4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x98], 0
je 0x49e6e4
lea ecx, [ebp - 0x14]
call fcn.00407094
call fcn.00417fc6
add eax, 4
mov dword [ebp - 0x1c], eax
push 0
push str.supplyid
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
call dword [eax + 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0048e82c
pop ecx
pop ecx
mov dword [ebp - 8], 1
jmp 0x49e544
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
jg 0x49e5a6
push dword [ebp - 8]
lea ecx, [ebp - 0xc]
call fcn.004026c4
push eax
push str._sGuidePic_02d.png
lea eax, [ebp - 0x14]
push eax
call fcn.004080bb
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.004026c4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49e57c
jmp 0x49e5a6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x98]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x30], ecx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x98]
mov ecx, dword [ebp - 8]
lea ecx, [eax + ecx*4 + 8]
call fcn.00406ff1
jmp 0x49e53d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x8c], 1
jne 0x49e5e6
or dword [ebp - 0x10], 1
push 0x4c9290
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040c429
add esp, 0xc
mov ecx, eax
call fcn.004026c4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49e5e6
mov dword [ebp - 0x20], 1
jmp 0x49e5ea
and dword [ebp - 0x20], 0
mov al, byte [ebp - 0x20]
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x10]
and eax, 1
je 0x49e604
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x24]
call fcn.00405d4a
movzx eax, byte [ebp - 1]
test eax, eax
je 0x49e677
push 0
push 0x4e37ec
push 0x4e3824
push 1
mov ecx, dword [ebp + 8]
add ecx, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
call dword [eax + 4]
push 0
push eax
call fcn.004a3eed
add esp, 0x14
mov dword [ebp - 0x28], eax
push 0
mov ecx, dword [ebp - 0x28]
call fcn.0049b951
push 0
push 1
push 1
push str.GuidePic_home.png
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040c429
add esp, 0xc
mov ecx, eax
call fcn.004026c4
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
call fcn.00437b60
lea ecx, [ebp - 0x2c]
call fcn.00405d4a
push 0x4c92d8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040c429
add esp, 0xc
mov ecx, eax
call fcn.004026c4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x30]
call fcn.00405d4a
cmp dword [ebp - 0x34], 0
je 0x49e6d4
push str.GuidePic_title.xml
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040c429
add esp, 0xc
push eax
mov ecx, dword [ebp + 8]
sub ecx, 0x64
call fcn.0049dfb8
lea ecx, [ebp - 0x38]
call fcn.00405d4a
lea ecx, [ebp - 0xc]
call fcn.00405d4a
lea ecx, [ebp - 0x14]
call fcn.00405d4a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x9c], 0
jne 0x49e70f
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa4], 0
jne 0x49e70f
cmp dword [ebp - 0x3c], 0
je 0x49e70f
push 1
mov ecx, dword [ebp + 8]
sub ecx, 0x64
call fcn.004a0836
push dword [ebp + 0xc]
push str.CMainWndUI::OnDownloadUiConfig__d
push 0xd2
push str.UIMainWndUI.cpp
call fcn.0044c788
add esp, 0x10
xor eax, eax
mov esp, ebp
pop ebp
ret 8