Function at 0x4051a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x459828
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4736c0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
push 0x69008
lea eax, [ebp + 0xd0]
push 0
push eax
call fcn.00442fd0
add esp, 0xc
push 0x69008
lea ecx, [ebp + 0x690d8]
push 0
push ecx
call fcn.00442fd0
mov eax, dword [ebx + 0x13cb08]
add esp, 8
sub eax, 0x10
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00408350
mov ecx, dword [esp + 0x58]
add eax, 0x10
add esp, 4
mov edi, ebx
mov dword [esi], eax
call fcn.00401d60
cmp eax, 1
jne 0x405a74
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push str.Update.dat
lea eax, [ebx + 0x13cafc]
push eax
push edx
call fcn.004078f0
mov ecx, dword [esp + 0x64]
add esp, 0xc
call fcn.00403780
cmp eax, 1
mov dword [ebx + 0x13cb10], eax
jne 0x4058c4
lea ecx, [ebx + 0x69ecc]
push ecx
lea edx, [ebx + 0x1a4]
push edx
call fcn.00440414
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 8
test eax, eax
je 0x405426
cmp dword [ebx + 0xdb4], 1
jne 0x40529a
cmp dword [ebx + 0x13cb1c], 0
je 0x405426
lea eax, [ebx + 0x8a4]
push eax
call esi
cmp eax, 0xffffffff
je 0x4052b0
test al, 0x10
je 0x405426
lea ecx, [ebx + 0x9a4]
push ecx
call esi
cmp eax, 0xffffffff
je 0x4052c6
test al, 0x10
je 0x405426
lea edx, [ebx + 0xaa4]
push edx
call esi
cmp eax, 0xffffffff
je 0x4052dc
test al, 0x10
je 0x405426
lea eax, [ebx + 0xba4]
push eax
call esi
cmp eax, 0xffffffff
je 0x4052f2
test al, 0x10
je 0x405426
lea ecx, [ebx + 0xca4]
push ecx
call esi
cmp eax, 0xffffffff
je 0x405308
test al, 0x10
je 0x405426
lea esi, [ebx + 0x3a4]
push 0x46190c
push esi
call fcn.00440414
add esp, 8
test eax, eax
je 0x4053c1
push 0x461910
push esi
call fcn.00440414
add esp, 8
test eax, eax
je 0x4053c1
push 0x461914
push esi
call fcn.00440414
add esp, 8
test eax, eax
jne 0x405a74
mov edx, dword [ebp + 0xd20dc]
imul edx, edx, 0xd20
lea edi, [edx + ebp + 0x690d8]
lea esi, [ebx + 0xa4]
mov ecx, 0x348
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xd20dc]
imul ecx, ecx, 0xd20
mov eax, 1
mov dword [ecx + ebp + 0x69dd8], eax
mov edx, dword [ebp + 0xd20dc]
imul edx, edx, 0xd20
xor ecx, ecx
mov dword [edx + ebp + 0x69de0], ecx
mov edx, dword [ebp + 0xd20dc]
imul edx, edx, 0xd20
mov dword [edx + ebp + 0x69dec], ecx
add dword [ebp + 0xd20dc], eax
mov dword [ebx + 0x13cb18], eax
jmp 0x405a74
mov eax, dword [ebp + 0x690d4]
imul eax, eax, 0xd20
lea edi, [eax + ebp + 0xd0]
lea esi, [ebx + 0xa4]
mov ecx, 0x348
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x690d4]
imul ecx, ecx, 0xd20
mov eax, 1
mov dword [ecx + ebp + 0xdd0], eax
mov edx, dword [ebp + 0x690d4]
imul edx, edx, 0xd20
xor ecx, ecx
mov dword [edx + ebp + 0xdd8], ecx
mov edx, dword [ebp + 0x690d4]
imul edx, edx, 0xd20
mov dword [edx + ebp + 0xde4], ecx
jmp 0x405a68
cmp dword [ebx + 0x69dc8], 0
mov dword [esp + 0x1c], 0
jbe 0x405a74
lea ebp, [ebx + 0x16c4]
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405465
test al, 0x10
je 0x40589a
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405479
test al, 0x10
je 0x40589a
lea ecx, [ebp + 0x100]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405493
test al, 0x10
je 0x40589a
lea edx, [ebp + 0x200]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4054ad
test al, 0x10
je 0x40589a
lea eax, [ebp + 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4054c7
test al, 0x10
je 0x40589a
cmp dword [ebp + 0x410], 1
jne 0x4054e1
mov ecx, dword [esp + 0x48]
cmp dword [ecx + 0x13cb1c], 0
je 0x40589a
mov edi, dword [esp + 0x48]
xor esi, esi
cmp dword [edi + 0xd3af0], esi
jbe 0x405588
lea ebx, [edi + 0x6aaec]
lea esp, [esp]
lea eax, [ebp - 0x900]
push ebx
push eax
call fcn.00440414
add esp, 8
test eax, eax
je 0x405527
add esi, 1
add ebx, 0xd20
cmp esi, dword [edi + 0xd3af0]
jb 0x405500
jmp 0x405588
imul esi, esi, 0xd20
lea edx, [esi + edi + 0x6abec]
push edx
lea eax, [ebp - 0x800]
push eax
call fcn.00440414
add esp, 8
test eax, eax
je 0x405552
mov dword [esp + 0x54], 1
jmp 0x405588
cmp byte [ebp - 0x300], 0
lea eax, [ebp - 0x300]
mov esi, 1
mov dword [esp + 0x14], esi
je 0x405580
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40557a
test al, 0x10
je 0x405580
mov dword [esp + 0x54], esi
jmp 0x405588
mov dword [esp + 0x54], 0
cmp dword [ebp + 0x418], 1
jne 0x4056ec
push 0x461918
lea ecx, [esp + 0x54]
call fcn.004080b0
lea ecx, [ebp - 0x200]
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x44], 0
call fcn.00407800
lea esi, [esp + 0x28]
call fcn.0040afd0
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x50]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov esi, esp
push eax
mov dword [esp + 0x34], OleUIBusyA
call fcn.00408350
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [esp + 0x2c]
call fcn.0040b050
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x461b1f
call fcn.004080b0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.INST_DATE
mov byte [esp + 0x4c], 2
call fcn.004080b0
lea ebx, [esp + 0x20]
mov ecx, esi
mov byte [esp + 0x48], 1
call fcn.0040b220
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jle 0x40569f
push eax
call fcn.0044022c
cdq
add esp, 4
push 0
mov esi, eax
mov ebx, edx
call fcn.00440494
add esp, 4
sub eax, esi
mov esi, dword [ebp + 0x41c]
push 0
push 0x15180
sbb edx, ebx
push edx
push eax
call fcn.00446970
xor ecx, ecx
cmp ecx, edx
jl 0x40569b
jg 0x405673
cmp esi, eax
jb 0x40569b
lea ecx, [esp + 0x18]
call fcn.00411d80
lea esi, [esp + 0x28]
call fcn.0040b010
lea ecx, [esp + 0x50]
mov dword [esp + 0x40], 0xffffffff
call fcn.00411d80
jmp 0x40589a
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4056bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x28]
call fcn.0040b010
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x54], 1
je 0x4056fe
cmp dword [esp + 0x14], 0
jne 0x40589a
lea esi, [ebp - 0x600]
push 0x46190c
push esi
call fcn.00440414
add esp, 8
test eax, eax
je 0x4057f2
push 0x461910
push esi
call fcn.00440414
add esp, 8
test eax, eax
je 0x4057f2
push 0x461914
push esi
call fcn.00440414
add esp, 8
test eax, eax
jne 0x40589a
mov ebx, dword [esp + 0x4c]
mov ecx, dword [ebx + 0xd20dc]
imul ecx, ecx, 0xd20
lea edi, [ecx + ebx + 0x690d8]
lea esi, [ebp - 0x900]
mov ecx, 0x348
rep movsd dword es:[edi], dword [esi]
mov esi, 1
cmp dword [ebp + 0x40c], esi
jne 0x4057c1
cmp dword [esp + 0x14], eax
jne 0x4057a8
lea edx, [ebp - 0x300]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4057a8
test al, 0x10
jne 0x4057a8
mov eax, dword [ebx + 0xd20dc]
imul eax, eax, 0xd20
mov dword [eax + ebx + 0x69dd8], esi
jmp 0x4057d4
mov ecx, dword [ebx + 0xd20dc]
imul ecx, ecx, 0xd20
mov dword [ecx + ebx + 0x69dd8], 0
jmp 0x4057d4
mov edx, dword [ebx + 0xd20dc]
imul edx, edx, 0xd20
mov dword [edx + ebx + 0x69dd8], esi
mov eax, dword [ebx + 0xd20dc]
imul eax, eax, 0xd20
mov dword [eax + ebx + 0x69dec], esi
add dword [ebx + 0xd20dc], esi
jmp 0x40589a
mov ebx, dword [esp + 0x4c]
mov ecx, dword [ebx + 0x690d4]
imul ecx, ecx, 0xd20
lea edi, [ecx + ebx + 0xd0]
lea esi, [ebp - 0x900]
mov ecx, 0x348
rep movsd dword es:[edi], dword [esi]
mov esi, 1
cmp dword [ebp + 0x40c], esi
jne 0x40586e
cmp dword [esp + 0x14], 0
jne 0x405855
lea edx, [ebp - 0x300]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405855
test al, 0x10
jne 0x405855
mov eax, dword [ebx + 0x690d4]
imul eax, eax, 0xd20
mov dword [eax + ebx + 0xdd0], esi
jmp 0x405881
mov ecx, dword [ebx + 0x690d4]
imul ecx, ecx, 0xd20
mov dword [ecx + ebx + 0xdd0], 0
jmp 0x405881
mov edx, dword [ebx + 0x690d4]
imul edx, edx, 0xd20
mov dword [edx + ebx + 0xdd0], esi
mov eax, dword [ebx + 0x690d4]
imul eax, eax, 0xd20
mov dword [eax + ebx + 0xde4], esi
add dword [ebx + 0x690d4], esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
add eax, 1
add ebp, 0xd20
cmp eax, dword [ecx + 0x69dc8]
mov dword [esp + 0x1c], eax
jb 0x405441
mov ebp, dword [esp + 0x4c]
jmp 0x405a74
cmp dword [ebx + 0xdb4], 1
jne 0x4058da
cmp dword [ebx + 0x13cb1c], 0
je 0x405a74
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [ebx + 0x8a4]
push edx
call esi
cmp eax, 0xffffffff
je 0x4058f6
test al, 0x10
je 0x405a74
lea eax, [ebx + 0x9a4]
push eax
call esi
cmp eax, 0xffffffff
je 0x40590c
test al, 0x10
je 0x405a74
lea ecx, [ebx + 0xaa4]
push ecx
call esi
cmp eax, 0xffffffff
je 0x405922
test al, 0x10
je 0x405a74
lea edx, [ebx + 0xba4]
push edx
call esi
cmp eax, 0xffffffff
je 0x405938
test al, 0x10
je 0x405a74
lea eax, [ebx + 0xca4]
push eax
call esi
cmp eax, 0xffffffff
je 0x40594e
test al, 0x10
je 0x405a74
lea esi, [ebx + 0x3a4]
push 0x46190c
push esi
call fcn.00440414
add esp, 8
test eax, eax
je 0x405a06
push 0x461910
push esi
call fcn.00440414
add esp, 8
test eax, eax
je 0x405a06
push 0x461914
push esi
call fcn.00440414
add esp, 8
test eax, eax
jne 0x405a74
mov ecx, dword [ebp + 0xd20dc]
imul ecx, ecx, 0xd20
lea edi, [ecx + ebp + 0x690d8]
lea esi, [ebx + 0xa4]
mov ecx, 0x348
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xd20dc]
imul edx, edx, 0xd20
mov eax, 1
mov dword [edx + ebp + 0x69dd8], eax
mov ecx, dword [ebp + 0xd20dc]
imul ecx, ecx, 0xd20
mov dword [ecx + ebp + 0x69de0], 0
mov edx, dword [ebp + 0xd20dc]
imul edx, edx, 0xd20
mov dword [edx + ebp + 0x69dec], eax
add dword [ebp + 0xd20dc], eax
mov dword [ebx + 0x13cb18], eax
jmp 0x405a74
mov eax, dword [ebp + 0x690d4]
imul eax, eax, 0xd20
lea edi, [eax + ebp + 0xd0]
lea esi, [ebx + 0xa4]
mov ecx, 0x348
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x690d4]
imul ecx, ecx, 0xd20
mov eax, 1
mov dword [ecx + ebp + 0xdd0], eax
mov edx, dword [ebp + 0x690d4]
imul edx, edx, 0xd20
mov dword [edx + ebp + 0xdd8], 0
mov ecx, dword [ebp + 0x690d4]
imul ecx, ecx, 0xd20
mov dword [ecx + ebp + 0xde4], eax
add dword [ebp + 0x690d4], eax
mov dword [ebx + 0x13cb14], eax
cmp dword [ebp + 0x690d4], 0
ja 0x405a8a
cmp dword [ebp + 0xd20dc], 0
ja 0x405a8a
xor eax, eax
jmp 0x405a8f
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0x10