Function at 0x10042a70
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x1005b198
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push esi
call fcn.10041ee0
mov eax, dword [0x1006eb44]
push 0x147
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.10013a10
mov dword [esp + 0x28], 0
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4b8
push ecx
call edi
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.USER32.dll_SetWindowTextW]
push edx
push eax
call ebp
mov eax, dword [0x1006eb44]
push 0x275
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.10013a10
mov byte [esp + 0x28], 1
mov ecx, dword [esi + 4]
push 0x4b9
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
push eax
call ebp
mov eax, dword [esi + 0x170]
add eax, 0x1c0
push eax
lea ebp, [esi + 0x478]
push ebp
call fcn.10049910
mov edi, esi
call fcn.10047000
mov eax, dword [ebp + 4]
test eax, eax
je 0x10042b44
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
je 0x10042b44
push esi
xor ecx, ecx
call fcn.10046600
call fcn.10046bc0
mov ecx, dword [esi + 0x170]
call sub.SetupUi.dll_public:_enum_Setup::tagPATCHSTATE___thiscall_CProduct::GetMsiPatchState_void_
cmp eax, 2
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
jne 0x10042b8d
mov edx, dword [esi + 0x500]
push 0
push 1
push 0xf1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x500]
push 0
push eax
call ebx
mov ecx, dword [esi + 0x504]
push 0
push ecx
call ebx
jmp 0x10042c08
cmp eax, 4
jne 0x10042bcb
mov edx, dword [esi + 0x504]
push 0
push 1
push 0xf1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x500]
push 0
push eax
call ebx
mov ecx, dword [esi + 0x504]
push 0
push ecx
call ebx
mov edx, dword [esi + 0x498]
push 0
push edx
call ebx
jmp 0x10042c08
mov ecx, dword [esi + 0x170]
call sub.SetupUi.dll_public:_enum_Setup::tagPATCHSTATE___thiscall_CProduct::GetPatchState_void_
cmp eax, 3
je 0x10042bf2
cmp eax, 4
je 0x10042bf2
mov eax, dword [esi + 0x500]
push 0
push 1
push 0xf1
push eax
jmp 0x10042c02
mov ecx, dword [esi + 0x504]
push 0
push 1
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 4]
test eax, eax
je 0x10042c1d
mov edx, dword [ebp + 8]
sub edx, eax
sar edx, 2
jne 0x10042c3a
test eax, eax
jne 0x10042c21
xor ebp, ebp
jmp 0x10042c29
mov ebp, dword [ebp + 8]
sub ebp, eax
sar ebp, 2
mov ecx, dword [esi + 0x498]
xor eax, eax
test ebp, ebp
setne al
push eax
push ecx
call ebx
mov ecx, esi
call fcn.10047370
test al, al
je 0x10042ce5
mov edx, dword [esi + 0x16c]
mov ecx, dword [edx + 0x20c]
lea eax, [esp + 0x1c]
push str.ServicePacks_
push eax
call fcn.10049e10
add esp, 8
lea ebp, [esi + 0x51c]
mov edi, eax
mov eax, ebp
mov byte [esp + 0x28], 2
call fcn.10015ac0
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x10042cad
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10042cad
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10042ccb
mov ebp, dword [ebp]
push eax
push ebp
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x10042ce5
push str.IsUpdateAvailable
push esi
call fcn.100477f0
cmp eax, 1
jne 0x10042ce5
push eax
mov eax, dword [esi + 0x4e0]
push eax
call ebx
mov esi, dword [esp + 0x14]
lea ecx, [esi - 0xc]
cmp ecx, 0x1006eb34
je 0x10042d0b
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10042d0b
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x18]
lea edx, [esi - 0xc]
cmp edx, 0x1006eb34
je 0x10042d31
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10042d31
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret