Function at 0x419400
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4703f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x498700]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
cmp dword [ebp + 0x310], 0xffffffff
je 0x4196d3
call fcn.0043ec5a
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x419454
push 0x80004005
call fcn.004016d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ebx
call fcn.0043ec5a
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x419482
push 0x80004005
call fcn.004016d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea edi, [esp + 0x14]
lea esi, [esp + 0x34]
mov byte [esp + 0x2c], 1
call fcn.00418f90
test al, al
jne 0x419513
push str.Failed_to_get_user_settings_folder
push ebx
push 0x394
push str.CWebInstallerDlg::restoreUserSettings
call fcn.00430235
mov byte [esp + 0x3c], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4194e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41950c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4196d5
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push esi
jne 0x41957c
push str.User_settings_folder_does_not_exist:__s
push ebx
push 0x399
push str.CWebInstallerDlg::restoreUserSettings
call fcn.00430235
lea eax, [esi - 0x10]
add esp, 0x14
mov byte [esp + 0x2c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41955b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4196c7
push str.Attempting_to_restore_user_settings_from__s
push ebx
push 0x39f
push str.CWebInstallerDlg::restoreUserSettings
call fcn.00430235
mov eax, dword [ebp + 0x310]
add esp, 0x14
sub eax, 2
je 0x419613
sub eax, 2
jne 0x41968a
lea ecx, [esp + 0x14]
push ecx
push 4
lea esi, [esp + 0x3c]
call fcn.00410190
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x419686
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00410080
mov byte [esp + 0x34], 2
mov eax, dword [eax]
push eax
push esi
push str.Could_not_rename_user_settings_folder__system_error__d____s
push ebx
push 0x3a7
push str.CWebInstallerDlg::restoreUserSettings
call fcn.00430235
lea ecx, [esp + 0x38]
add esp, 0x20
call fcn.00401890
lea ecx, [esp + 0x14]
call fcn.00401890
lea ecx, [esp + 0x34]
call fcn.00401890
xor al, al
jmp 0x4196d5
push 0x481268
lea ecx, [esp + 0x20]
call fcn.004018b0
lea ecx, [esp + 0x34]
push ecx
push 3
mov esi, eax
call fcn.00410190
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.00401890
lea edx, [esp + 0x14]
push edx
push 1
lea esi, [esp + 0x3c]
call fcn.00410190
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x419686
lea eax, [esp + 0x20]
push esi
push eax
call fcn.00410080
mov byte [esp + 0x34], 3
mov ecx, dword [eax]
push ecx
push esi
push str.Could_not_move_user_settings_folder__system_error__d____s
push ebx
push 0x3b2
push str.CWebInstallerDlg::restoreUserSettings
call fcn.00430235
lea ecx, [esp + 0x40]
jmp 0x4195f2
mov esi, dword [esp + 0x14]
or edi, 0xffffffff
lea eax, [esi - 0x10]
mov dword [ebp + 0x310], edi
mov byte [esp + 0x2c], bl
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4196b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x4196d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4