Function at 0x404970
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f019
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push esi
push edi
mov eax, dword [0x451530]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], 4
call fcn.0040ae6b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4049d5
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
call fcn.0040ae6b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x404a02
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 6
call fcn.0040ae6b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x404a2f
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 8
call fcn.0040ae6b
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x404a5c
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 9
mov eax, dword [edi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x404a85
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
call fcn.00402d70
mov ecx, dword [edi]
lea edi, [ebp - 0x38]
call fcn.00404860
cmp eax, ebx
je 0x404aa4
push 0x44c7ec
lea edx, [ebp - 0x4c]
push edx
mov dword [ebp - 0x4c], eax
call fcn.0042be7b
mov esi, dword [ebp - 0x38]
cmp dword [esi - 0xc], ebx
jl 0x404ada
push 0x4461f8
push esi
call fcn.00428f45
add esp, 8
cmp eax, ebx
je 0x404ada
sub eax, esi
cmp eax, 0xffffffff
je 0x404ada
push 0x44c7ec
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x1bc
call fcn.0042be7b
lea edi, [ebp - 0x28]
call fcn.00405650
cmp dword [esi - 4], 1
jle 0x404af7
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00402d70
mov esi, dword [ebp - 0x38]
push ecx
mov ebx, esp
mov dword [ebp - 0x40], esp
push esi
call fcn.00403250
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x404b18
push 0x80004003
call fcn.0043cab0
mov byte [ebp - 4], 9
call fcn.004035e0
push ecx
mov ebx, esp
mov dword [ebp - 0x40], esp
push str._manifest_filelist_file
call fcn.00403250
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x404b46
push 0x80004003
call fcn.0043cab0
lea ebx, [ebp - 0x20]
mov byte [ebp - 4], 9
call fcn.004033f0
mov eax, dword [eax]
test eax, eax
je 0x404b63
mov edx, dword [eax]
mov dword [ebp - 0x1c], eax
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x404b75
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test edi, edi
jne 0x404b83
push 0x80004003
call fcn.0043cab0
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
lea ecx, [ebp - 0x2c]
push ecx
push edi
mov dword [ebp - 0x2c], 0
call edx
test eax, eax
jge 0x404ba6
push 0x446420
push edi
push eax
call fcn.0043cad0
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x2c], edx
cmp edx, dword [ebp - 0x54]
jge 0x404e49
mov esi, dword [ebp - 0x1c]
lea edi, [ebp - 0x64]
call fcn.004034c0
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
mov dword [ecx], eax
test eax, eax
je 0x404bdf
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea esi, [ebp - 0x34]
call fcn.00405980
test eax, eax
jge 0x404bf8
cmp eax, 0x80004002
je 0x404bf8
push eax
call fcn.0043cab0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x404c0b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ecx
mov ebx, esp
mov dword [ebp - 0x20], esp
push str.filename
call fcn.00403250
mov byte [ebp - 4], 0xd
mov edi, dword [ebp - 0x34]
test edi, edi
jne 0x404c30
push 0x80004003
call fcn.0043cab0
lea ebx, [ebp - 0x9c]
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.00403500
push eax
lea esi, [ebp - 0x18]
mov byte [ebp - 4], 0xe
call fcn.00405860
mov eax, ebx
mov byte [ebp - 4], 9
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push eax
call esi
push ecx
mov ebx, esp
mov dword [ebp - 0x20], esp
push str.filesize
call fcn.00403250
mov byte [ebp - 4], 0xf
lea ebx, [ebp - 0x7c]
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.00403500
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.00403330
mov ecx, ebx
push ecx
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 9
call esi
push ecx
mov ebx, esp
mov dword [ebp - 0x50], esp
push str.fileversion
call fcn.00403250
mov byte [ebp - 4], 0x11
lea ebx, [ebp - 0x8c]
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.00403500
push eax
lea esi, [ebp - 0x3c]
mov byte [ebp - 4], 0x12
call fcn.00405860
mov edx, ebx
push edx
mov byte [ebp - 4], 9
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ecx
mov ebx, esp
mov dword [ebp - 0x50], esp
push 0x446244
call fcn.00403250
mov byte [ebp - 4], 0x13
lea ebx, [ebp - 0xac]
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.00403500
push eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 0x14
call fcn.00405860
mov eax, ebx
push eax
mov byte [ebp - 4], 9
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0x18]
push str.Reg.Local
push ecx
call fcn.004294a9
add esp, 8
test eax, eax
sete al
test al, al
jne 0x404e38
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x18]
push edx
lea esi, [edi + 0x2cc]
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00405440
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, eax
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x404e1a
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x40]
push esi
push edx
call fcn.00405440
add esp, 0xc
push eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 0x15
call fcn.00408ec0
mov edx, dword [ebp - 0x30]
xor ecx, ecx
add esp, 8
test edx, edx
setne cl
test ecx, ecx
jne 0x404db8
push 0x80004005
call fcn.00401010
mov eax, dword [eax]
push edx
push eax
call fcn.004294a9
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x58]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404de8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404e0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x404e38
mov ecx, dword [ebp - 0x20]
add dword [edi + 0x2d4], ecx
jmp 0x404e23
mov edx, dword [ebp - 0x20]
add dword [edi + 0x2d4], edx
mov edx, dword [ebp - 0x18]
lea ecx, [edi + 0x288]
call fcn.00407620
mov dword [ebp - 0x24], 1
inc dword [ebp - 0x2c]
mov esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
jmp 0x404bb1
lea eax, [esi - 0x10]
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404e69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404e8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404eaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ed2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x404ee5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 2
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x404f04
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x404f17
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x404f2d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4