Function at 0x432110
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4b8160
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea esi, [esp + 0x10]
call fcn.0042d3c0
mov edi, 0x4e4c98
mov dword [esp + 0x20], 0
call fcn.0040a8e0
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 0x432177
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, 0x4e4c98
call fcn.0040a4f0
lea ecx, [esp + 0x10]
push edi
push ecx
mov ebx, str.update_rebootconfig.dat
call fcn.0040e670
add esp, 8
mov edi, 0x4e4c9c
mov dword [esp + 0x20], 1
call fcn.0040a8e0
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 0x4321c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push 0x4e4c98
push ecx
mov ebx, str.update_rebootconfig2.dat
call fcn.0040e670
add esp, 8
mov edi, 0x4e4ca0
mov dword [esp + 0x20], 2
call fcn.0040a8e0
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 0x432215
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push 0x4e4c98
push ecx
mov ebx, 0x4ca448
call fcn.0040e670
add esp, 8
mov edi, 0x4e4ca4
mov dword [esp + 0x20], 3
call fcn.0040a8e0
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 0x432261
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push 0x4e4c98
push ecx
mov ebx, str.update_reboot_update2
call fcn.0040e670
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 0x4322a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x43235a
lea ecx, [esp + 0x10]
push 0x4e4c98
push ecx
mov ebx, str.update_reboot_update2_
call fcn.0040e670
mov dword [esp + 0x28], 4
mov eax, dword [eax]
push 1
push eax
call fcn.0041ca90
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 0x4322f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push 0x4e4c98
push ecx
mov ebx, 0x4ca448
call fcn.0040e670
mov dword [esp + 0x28], 5
mov eax, dword [eax]
push 1
push eax
call fcn.0041ca90
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 0x432342
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4e4c9c]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
call edi
mov edx, dword [0x4e4ca0]
push edx
call edi
mov eax, dword [0x4e4c9c]
push 0
push eax
call fcn.004965a0
add esp, 8
test eax, eax
je 0x432421
mov ecx, dword [0x4e4ca0]
push 0
push ecx
call fcn.004965a0
add esp, 8
test eax, eax
je 0x432421
lea edx, [esp + 0x10]
push 0x4e4c98
push edx
mov ebx, str.update_reboot_update2_
call fcn.0040e670
mov dword [esp + 0x28], 6
mov eax, dword [eax]
push 1
push eax
call fcn.0041ca90
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 0x4323d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push 0x4e4c98
push ecx
mov ebx, 0x4ca448
call fcn.0040e670
mov dword [esp + 0x28], 7
mov eax, dword [eax]
push 1
push eax
call fcn.0041ca90
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 0x432421
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4e4c9c]
push 0
push ecx
call fcn.004965a0
add esp, 8
test eax, eax
jne 0x43244b
mov edx, dword [0x4e4c9c]
push 3
mov dword [0x4e4ca8], 1
push edx
jmp 0x432467
cmp dword [0x4e4ca8], 0
je 0x43245f
mov edx, dword [0x4e4c9c]
push 3
push edx
jmp 0x432467
mov eax, dword [0x4e4ca0]
push 3
push eax
push 0x4e4cac
call fcn.004167a0
mov ecx, dword [0x4e4ca8]
push ecx
push str.KRebootConfigWritter::Init_m_bUseBackPath:_d
mov ecx, 0x4e49b4
call fcn.00419ab0
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