Function at 0x10044940
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
call fcn.10044160
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 + 0x228]
push ebp
call fcn.10049910
mov edi, esi
call fcn.100484f0
mov eax, dword [ebp + 4]
test eax, eax
je 0x10044a13
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 2
je 0x10044a13
push esi
xor ecx, ecx
call fcn.10047de0
call fcn.100483a0
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 0x10044a5c
mov edx, dword [esi + 0x2b0]
push 0
push 1
push 0xf1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x2b0]
push 0
push eax
call ebx
mov ecx, dword [esi + 0x2b4]
push 0
push ecx
call ebx
jmp 0x10044ad7
cmp eax, 4
jne 0x10044a9a
mov edx, dword [esi + 0x2b4]
push 0
push 1
push 0xf1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x2b0]
push 0
push eax
call ebx
mov ecx, dword [esi + 0x2b4]
push 0
push ecx
call ebx
mov edx, dword [esi + 0x248]
push 0
push edx
call ebx
jmp 0x10044ad7
mov ecx, dword [esi + 0x170]
call sub.SetupUi.dll_public:_enum_Setup::tagPATCHSTATE___thiscall_CProduct::GetPatchState_void_
cmp eax, 3
je 0x10044ac1
cmp eax, 4
je 0x10044ac1
mov eax, dword [esi + 0x2b0]
push 0
push 1
push 0xf1
push eax
jmp 0x10044ad1
mov ecx, dword [esi + 0x2b4]
push 0
push 1
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 4]
test eax, eax
je 0x10044aec
mov edx, dword [ebp + 8]
sub edx, eax
sar edx, 2
jne 0x10044b09
test eax, eax
jne 0x10044af0
xor ebp, ebp
jmp 0x10044af8
mov ebp, dword [ebp + 8]
sub ebp, eax
sar ebp, 2
mov ecx, dword [esi + 0x248]
xor eax, eax
test ebp, ebp
setne al
push eax
push ecx
call ebx
mov ecx, esi
call fcn.10048990
test al, al
je 0x10044bb4
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 + 0x2cc]
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 0x10044b7c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10044b7c
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 0x10044b9a
mov ebp, dword [ebp]
push eax
push ebp
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x10044bb4
push str.IsUpdateAvailable
push esi
call fcn.10048e10
cmp eax, 1
jne 0x10044bb4
push eax
mov eax, dword [esi + 0x290]
push eax
call ebx
mov esi, dword [esp + 0x14]
lea ecx, [esi - 0xc]
cmp ecx, 0x1006eb34
je 0x10044bda
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10044bda
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 0x10044c00
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10044c00
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