Function at 0x405760
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x41a5e1
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x4243c8]
xor eax, esp
mov dword [esp + 0x424], eax
push ebp
push esi
push edi
mov eax, dword [0x4243c8]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
mov eax, dword [esp + 0x450]
mov dword [esp + 0x18], eax
mov dword [esp + 0x440], 1
call fcn.004037d0
mov ebp, eax
test ebp, ebp
je 0x405956
push ebp
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x4258bc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4258bc
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44c]
push 0
lea ecx, [esp + 0x18]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
mov byte [esp + 0x450], 2
call fcn.00402240
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00404c00
mov edx, dword [str.svcboot.dll]
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0xa
push 5
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
add esi, 0xfffffff0
call fcn.004048e0
push ecx
mov dword [esp + 0x2c], esp
mov edi, esp
push esi
mov byte [esp + 0x454], 3
call fcn.00402240
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x24]
add esp, 4
push eax
mov byte [esp + 0x454], 2
call fcn.00404ce0
push 0x40e
lea ecx, [esp + 0x3e]
push 0
push ecx
mov byte [esp + 0x460], 4
mov word [esp + 0x44], 0
call fcn.0040b3b0
mov edx, dword [esp + 0x468]
push edx
lea eax, [esp + 0x48]
push 0x208
push eax
call fcn.0040bbad
mov ecx, dword [esp + 0x3c]
add esp, 0x2c
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [str.svcboot.dll]
push str.svcboot.dll
push eax
call fcn.0040c234
add esp, 8
test eax, eax
jne 0x405906
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4058da
mov edx, dword [esp + 0x18]
mov dword [edx], 1
cmp dword [0x424264], 1
jne 0x405906
lea eax, [esp + 0x448]
push eax
push 0
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.004048e0
call fcn.00404a50
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x440], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40592e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x440], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405956
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x448]
add eax, 0xfffffff0
mov byte [esp + 0x440], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405981
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44c]
add eax, 0xfffffff0
mov dword [esp + 0x440], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4059af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.0040b399
add esp, 0x434
ret