Function at 0x405280
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x57e8bd
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5e68f0]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e68f0]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
add edi, 0x24
push edi
mov ebx, str.dlpupgrade.manifest
lea esi, [esp + 0x90]
call fcn.004073e0
add esp, 4
xor ebp, ebp
mov dword [esp + 0xec], ebp
mov eax, 7
xor ecx, ecx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xbc], ebp
mov word [esp + 0xac], cx
xor edx, edx
mov dword [esp + 0xdc], eax
mov dword [esp + 0xd8], ebp
mov word [esp + 0xc8], dx
mov byte [esp + 0xec], 2
mov eax, dword [esp + 0x90]
mov esi, 8
cmp dword [esp + 0xa4], esi
jae 0x40533b
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405390
push edi
mov ebx, str.Windows_Sectyupgrade.manifest
lea esi, [esp + 0x1c]
call fcn.004073e0
add esp, 4
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x94]
mov byte [esp + 0xf4], 3
call fcn.004060b0
mov byte [esp + 0xec], 2
cmp dword [esp + 0x30], 8
jb 0x40538b
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040d4cc
add esp, 4
mov esi, 8
mov eax, dword [esp + 0x90]
cmp dword [esp + 0xa4], esi
jae 0x4053a7
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405422
push edi
mov ebx, 0x5be850
lea esi, [esp + 0x1c]
call fcn.004073e0
add esp, 4
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x94]
mov byte [esp + 0xf4], 4
call fcn.004060b0
mov byte [esp + 0xec], 2
cmp dword [esp + 0x30], 8
jb 0x4053f7
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0040d4cc
add esp, 4
mov edx, dword [esp + 0x14]
push ebp
add edx, 0x44
push edx
or eax, 0xffffffff
lea esi, [esp + 0x94]
call fcn.004064c0
push 0x11
mov eax, 0x5be854
mov ecx, esi
call fcn.00406580
mov esi, 8
mov eax, dword [esp + 0x90]
cmp dword [esp + 0xa4], esi
jae 0x405439
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4054cf
cmp dword [esp + 0xdc], esi
jb 0x405461
mov eax, dword [esp + 0xc8]
push eax
call fcn.0040d4cc
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd8], ebp
mov word [esp + 0xc8], cx
cmp dword [esp + 0xc0], esi
jb 0x405497
mov edx, dword [esp + 0xac]
push edx
call fcn.0040d4cc
add esp, 4
xor eax, eax
mov dword [esp + 0xc0], edi
mov dword [esp + 0xbc], ebp
mov word [esp + 0xac], ax
cmp dword [esp + 0xa4], esi
jb 0x4054c8
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0040d4cc
add esp, 4
xor eax, eax
jmp 0x40570c
mov eax, dword [esp + 0x14]
add eax, 8
push eax
lea edi, [esp + 0x3c]
mov dword [esp + 0x18], eax
call fcn.004074a0
push eax
mov ebx, 0x5be87c
lea esi, [esp + 0x20]
mov byte [esp + 0xf4], 5
call fcn.004073e0
lea edx, [esp + 0x94]
push edx
push eax
lea edi, [esp + 0x64]
mov byte [esp + 0xfc], 6
call fcn.00407560
push eax
mov ebx, 0x5be878
lea esi, [esp + 0x84]
mov byte [esp + 0x100], 7
call fcn.004073e0
add esp, 0x14
push 0xffffffffffffffff
mov ebx, 8
push ebp
lea ecx, [esp + 0xb0]
mov byte [esp + 0xf4], bl
call fcn.004060b0
cmp dword [esp + 0x88], ebx
jb 0x405563
mov eax, dword [esp + 0x74]
push eax
call fcn.0040d4cc
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebp
mov word [esp + 0x74], cx
cmp dword [esp + 0x6c], ebx
jb 0x405590
mov edx, dword [esp + 0x58]
push edx
call fcn.0040d4cc
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], ax
cmp dword [esp + 0x30], ebx
jb 0x4055b2
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0040d4cc
add esp, 4
xor edx, edx
mov byte [esp + 0xec], 2
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebp
mov word [esp + 0x1c], dx
cmp dword [esp + 0x50], ebx
jb 0x4055dc
mov eax, dword [esp + 0x3c]
push eax
call fcn.0040d4cc
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
mov ebx, 0x5be04c
lea esi, [esp + 0x3c]
call fcn.004073e0
add esp, 4
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0xcc]
mov byte [esp + 0xf4], 9
call fcn.004060b0
mov bl, 2
mov edi, 8
mov byte [esp + 0xec], bl
cmp dword [esp + 0x50], edi
jb 0x40562a
mov edx, dword [esp + 0x3c]
push edx
call fcn.0040d4cc
add esp, 4
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
xor eax, eax
mov esi, 7
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebp
push 0xffffffffffffffff
mov word [ecx + 4], ax
push ebp
lea eax, [esp + 0xd0]
call fcn.004060b0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x70], esp
mov byte [esp + 0x128], 0xa
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebp
push ebp
lea eax, [esp + 0x108]
mov word [ecx + 4], dx
call fcn.004060b0
mov byte [esp + 0x128], bl
call fcn.004034b0
mov ebx, eax
cmp dword [esp + 0xdc], edi
jb 0x4056a8
mov eax, dword [esp + 0xc8]
push eax
call fcn.0040d4cc
add esp, 4
xor ecx, ecx
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebp
mov word [esp + 0xc8], cx
cmp dword [esp + 0xc0], edi
jb 0x4056d9
mov edx, dword [esp + 0xac]
push edx
call fcn.0040d4cc
add esp, 4
xor eax, eax
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], ebp
mov word [esp + 0xac], ax
cmp dword [esp + 0xa4], edi
jb 0x40570a
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0040d4cc
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.0050c2f2
add esp, 0xdc
ret