Function at 0x104e65e
Capabilities:
Check if file exists

Disassembly:
push 0x34
mov eax, 0x10611df
call fcn.0104f320
mov esi, 0x1068adc
xor ebx, ebx
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.010309e3
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.010309e3
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.010309e3
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 3
call fcn.01046775
cmp eax, ebx
mov dword [ebp - 0x14], eax
jge 0x104e6ea
push 0x1004204
push 0x10189e8
push eax
call fcn.0104a504
add esp, 0xc
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.010303ce
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.010303ce
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.010303ce
mov eax, dword [ebp - 0x14]
call fcn.0104f3d4
ret 8
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0103145e
push 0x10189b4
lea ecx, [ebp - 0x18]
call fcn.01031508
push 0x101899c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.010314ac
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.01031394
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.010303ce
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x104e783
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.010443ca
cmp eax, ebx
jl 0x104e783
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.010452b9
cmp eax, ebx
jl 0x104e783
push dword [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.0104437d
cmp eax, ebx
jl 0x104e783
push 0x1002678
push 0x1018940
push 0x4000000
call fcn.0104a881
jmp 0x104e6bb
push esi
lea ecx, [ebp + 8]
call fcn.010309e3
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push 1
mov edi, 0x80000000
push edi
push eax
mov byte [ebp - 4], 7
call esi
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x104e993
cmp eax, 0xffffffff
je 0x104e993
push eax
push dword [ebp + 0xc]
call fcn.010443ca
cmp eax, ebx
mov dword [ebp - 0x14], eax
jge 0x104e7ec
push 0x10188f0
push 0x10188bc
push dword [ebp - 0x14]
call fcn.0104a504
add esp, 0xc
jmp 0x104e9d6
push 0x10188a4
lea eax, [ebp + 8]
push eax
call fcn.01046248
cmp eax, ebx
mov dword [ebp - 0x14], eax
jge 0x104e80d
push 0x1018860
push 0x101882c
jmp 0x104e7dc
push 0x5c
lea ecx, [ebp + 8]
call fcn.01038b4a
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.01034aa7
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.01031394
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.010303ce
push ebx
push ebx
push 3
push ebx
push 1
push edi
push dword [ebp + 8]
call esi
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
je 0x104e949
cmp esi, 0xffffffff
je 0x104e949
push esi
lea eax, [ebp + 8]
push eax
call fcn.010443ca
cmp eax, ebx
mov dword [ebp - 0x14], eax
jge 0x104e88c
push 0x10187f4
push 0x10187c4
push eax
call fcn.0104a504
add esp, 0xc
jmp 0x104e989
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.0104347e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
call fcn.010414a3
cmp eax, ebx
mov dword [ebp - 0x14], eax
jge 0x104e8ca
push dword [ebp - 0x18]
push dword [ebp + 8]
push 0x1018794
push 0x1018764
push dword [ebp - 0x14]
call fcn.0104a504
add esp, 0x14
jmp 0x104e989
push 0x10188a4
lea ecx, [ebp - 0x2c]
call fcn.01031665
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 9
call fcn.01042c59
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
call fcn.010303ce
cmp dword [ebp - 0x14], ebx
jge 0x104e915
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push 0x1018700
push 0x10186cc
jmp 0x104e8ba
mov esi, dword [ebp + 0xc]
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push esi
call fcn.0103101d
call fcn.01047015
cmp eax, ebx
mov dword [ebp - 0x14], eax
jge 0x104e989
push dword [esi]
push 0x1018688
push 0x1018658
push eax
call fcn.0104a504
add esp, 0x10
jmp 0x104e989
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, ebx
jle 0x104e95f
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x14], eax
jl 0x104e96d
mov dword [ebp - 0x14], 0x80004005
push dword [ebp + 8]
push 0x1001898
push 0x1018628
call edi
push eax
call fcn.0104a5f6
add esp, 0x10
cmp esi, ebx
je 0x104e9d6
lea ecx, [ebp - 0x28]
call fcn.010303b2
jmp 0x104e9d6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x104e9a9
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x14], eax
jl 0x104e9b7
mov dword [ebp - 0x14], 0x80004005
mov eax, dword [ebp + 0xc]
push dword [eax]
push 0x1001898
push 0x10185f8
call esi
push eax
call fcn.0104a5f6
add esp, 0x10
cmp dword [ebp - 0x24], ebx
je 0x104e9de
lea ecx, [ebp - 0x24]
call fcn.010303b2
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.010303ce
jmp 0x104e6be