Function at 0x104cfdb
Capabilities:
Check if file exists

Disassembly:
push 0x34
mov eax, 0x105f821
call fcn.0104dc9c
mov esi, 0x1066af4
xor ebx, ebx
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.010442ec
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.010442ec
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.010442ec
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 3
call fcn.010455d0
cmp eax, ebx
mov dword [ebp - 0x14], eax
jge 0x104d067
push 0x10041f4
push 0x1018198
push eax
call fcn.01048c52
add esp, 0xc
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0102fb3e
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0102fb3e
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0102fb3e
mov eax, dword [ebp - 0x14]
call fcn.0104dd50
ret 8
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.01030b8e
push 0x1018164
lea ecx, [ebp - 0x18]
call fcn.01030c38
push 0x101814c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.01030bdc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.01030ac4
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0102fb3e
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x104d100
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.01042e59
cmp eax, ebx
jl 0x104d100
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0104410b
cmp eax, ebx
jl 0x104d100
push dword [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.01042e0c
cmp eax, ebx
jl 0x104d100
push 0x1002428
push 0x10180f0
push 0x4000000
call fcn.01048b79
jmp 0x104d038
push esi
lea ecx, [ebp + 8]
call fcn.010442ec
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 0x104d310
cmp eax, 0xffffffff
je 0x104d310
push eax
push dword [ebp + 0xc]
call fcn.01042e59
cmp eax, ebx
mov dword [ebp - 0x14], eax
jge 0x104d169
push 0x10180a0
push 0x101806c
push dword [ebp - 0x14]
call fcn.01048c52
add esp, 0xc
jmp 0x104d353
push 0x1018054
lea eax, [ebp + 8]
push eax
call fcn.010450a3
cmp eax, ebx
mov dword [ebp - 0x14], eax
jge 0x104d18a
push 0x1018010
push 0x1017fdc
jmp 0x104d159
push 0x5c
lea ecx, [ebp + 8]
call fcn.010381fa
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.010340a7
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.01030ac4
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.0102fb3e
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 0x104d2c6
cmp esi, 0xffffffff
je 0x104d2c6
push esi
lea eax, [ebp + 8]
push eax
call fcn.01042e59
cmp eax, ebx
mov dword [ebp - 0x14], eax
jge 0x104d209
push 0x1017fa4
push 0x1017f74
push eax
call fcn.01048c52
add esp, 0xc
jmp 0x104d306
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.01041f0d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0103ff32
cmp eax, ebx
mov dword [ebp - 0x14], eax
jge 0x104d247
push dword [ebp - 0x18]
push dword [ebp + 8]
push 0x1017f44
push 0x1017f14
push dword [ebp - 0x14]
call fcn.01048c52
add esp, 0x14
jmp 0x104d306
push 0x1018054
lea ecx, [ebp - 0x2c]
call fcn.01031375
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.010416e8
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 7
call fcn.0102fb3e
cmp dword [ebp - 0x14], ebx
jge 0x104d292
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push 0x1017eb0
push 0x1017e7c
jmp 0x104d237
mov esi, dword [ebp + 0xc]
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push esi
call fcn.01030773
call fcn.01045d8b
cmp eax, ebx
mov dword [ebp - 0x14], eax
jge 0x104d306
push dword [esi]
push 0x1017e38
push 0x1017e08
push eax
call fcn.01048c52
add esp, 0x10
jmp 0x104d306
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, ebx
jle 0x104d2dc
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x14], eax
jl 0x104d2ea
mov dword [ebp - 0x14], 0x80004005
push dword [ebp + 8]
push 0x1001888
push 0x1017dd8
call edi
push eax
call fcn.01048d15
add esp, 0x10
cmp esi, ebx
je 0x104d353
lea ecx, [ebp - 0x28]
call fcn.0102fb22
jmp 0x104d353
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x104d326
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x14], eax
jl 0x104d334
mov dword [ebp - 0x14], 0x80004005
mov eax, dword [ebp + 0xc]
push dword [eax]
push 0x1001888
push 0x1017da8
call esi
push eax
call fcn.01048d15
add esp, 0x10
cmp dword [ebp - 0x24], ebx
je 0x104d35b
lea ecx, [ebp - 0x24]
call fcn.0102fb22
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0102fb3e
jmp 0x104d03b