Function at 0x4356f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x496de0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea esi, [esp + 0x10]
call fcn.0042cd40
mov edi, 0x4babf0
mov dword [esp + 0x20], 0
call fcn.00401cd0
or esi, 0xffffffff
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435757
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, 0x4babf0
call fcn.00401c30
lea ecx, [esp + 0x10]
push edi
push ecx
mov ebx, str.update_rebootconfig.dat
call fcn.0040d090
add esp, 8
mov edi, 0x4babf4
mov dword [esp + 0x20], 1
call fcn.00401cd0
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4357a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push 0x4babf0
push ecx
mov ebx, str.update_rebootconfig2.dat
call fcn.0040d090
add esp, 8
mov edi, 0x4babf8
mov dword [esp + 0x20], 2
call fcn.00401cd0
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4357f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push 0x4babf0
push ecx
mov ebx, str.update_reboot_update_
call fcn.0040d090
add esp, 8
mov edi, 0x4babfc
mov dword [esp + 0x20], 3
call fcn.00401cd0
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435841
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push 0x4babf0
push ecx
mov ebx, str.update_reboot_update2
call fcn.0040d090
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435882
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x43593a
lea ecx, [esp + 0x10]
push 0x4babf0
push ecx
mov ebx, str.update_reboot_update2_
call fcn.0040d090
mov dword [esp + 0x28], 4
mov eax, dword [eax]
push 1
push eax
call fcn.004214c0
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4358d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push 0x4babf0
push ecx
mov ebx, str.update_reboot_update_
call fcn.0040d090
mov dword [esp + 0x28], 5
mov eax, dword [eax]
push 1
push eax
call fcn.004214c0
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435922
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4babf4]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
call edi
mov edx, dword [0x4babf8]
push edx
call edi
mov eax, dword [0x4babf4]
push 0
push eax
call fcn.004602c8
add esp, 8
test eax, eax
je 0x435a01
mov ecx, dword [0x4babf8]
push 0
push ecx
call fcn.004602c8
add esp, 8
test eax, eax
je 0x435a01
lea edx, [esp + 0x10]
push 0x4babf0
push edx
mov ebx, str.update_reboot_update2_
call fcn.0040d090
mov dword [esp + 0x28], 6
mov eax, dword [eax]
push 1
push eax
call fcn.004214c0
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4359b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push 0x4babf0
push ecx
mov ebx, str.update_reboot_update_
call fcn.0040d090
mov dword [esp + 0x28], 7
mov eax, dword [eax]
push 1
push eax
call fcn.004214c0
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x435a01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4babf4]
push 0
push ecx
call fcn.004602c8
add esp, 8
test eax, eax
jne 0x435a2b
mov edx, dword [0x4babf4]
push 3
mov dword [0x4bac00], 1
push edx
jmp 0x435a47
cmp dword [0x4bac00], 0
je 0x435a3f
mov edx, dword [0x4babf4]
push 3
push edx
jmp 0x435a47
mov eax, dword [0x4babf8]
push 3
push eax
push 0x4bac04
call fcn.00418aa0
mov ecx, dword [0x4bac00]
push ecx
push str.KRebootConfigWritter::Init_m_bUseBackPath:_d
mov ecx, 0x4ba960
call fcn.0041d5c0
add esp, 8
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret