Function at 0x409000
Capabilities:
Check if file exists
Create thread
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x599730
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
mov eax, dword [0x5fd890]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push edi
call fcn.00408aa0
mov eax, dword [edi + 0x20]
push 0
push 0x64
push 0x3e9
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push edi
call fcn.00407900
test al, al
jne 0x40905f
mov ebx, 1
mov byte [edi + 0x451], bl
mov byte [edi + 0x450], bl
jmp 0x4092a3
push edi
call fcn.00408cd0
cmp byte [edi + 0x452], 0
je 0x409081
mov edx, dword [edi + 0x20]
push 0
push 0
push 0xbe2
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
lea ebp, [edi + 0x194]
mov eax, str.install_client
mov ebx, ebp
call fcn.004175f0
mov ebx, 1
test eax, eax
je 0x4090d2
cmp byte [eax + 0x64c], 0
je 0x4090d2
call fcn.0040b550
test eax, eax
jne 0x4090d2
cmp byte [edi + 0x452], al
je 0x4090ca
push eax
push eax
push edi
push 0x40beb0
push eax
push eax
call fcn.00567132
add esp, 0x18
jmp 0x4090d8
push edi
call fcn.0040bed0
jmp 0x4090d8
mov byte [edi + 0x460], bl
cmp byte [edi + 0x452], 0
je 0x409155
mov ecx, edi
call fcn.0040a280
push str.datadata_
lea eax, [edi + 0x424]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00404340
lea edx, [edi + 0x444]
push edx
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x40], 0
call fcn.00402950
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409143
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x10]
call fcn.00409650
mov eax, dword [esp + 0x10]
jmp 0x409227
mov eax, dword [edi + 0x434]
lea esi, [edi + 0x434]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409177
mov eax, dword [esi]
push eax
call fcn.004661d0
add esp, 4
lea ecx, [edi + 0x430]
push esi
push ecx
call fcn.00402360
add esp, 8
push str.SoftInstallerDlg
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x5ce270
lea edx, [esp + 0x20]
push esi
push edx
call fcn.00404340
sub esp, 0x10
mov dword [esp + 0x44], ebx
mov eax, dword [eax]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0040c070
push 0x5ce290
lea eax, [esp + 0x38]
push esi
push eax
mov byte [esp + 0x50], 2
call fcn.00404340
sub esp, 0x10
mov byte [esp + 0x60], 3
mov eax, dword [eax]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.0040c070
mov ecx, edi
mov byte [esp + 0x60], 4
call fcn.004096e0
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40921b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409243
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [edi + 0x460], 0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x409262
push 0xc8
call esi
cmp byte [edi + 0x460], 0
je 0x409252
cmp byte [edi + 0x451], 0
mov byte [edi + 0x450], bl
jne 0x4092a3
fld dword [0x5d81a4]
mov eax, str.install_progress
mov ebx, ebp
fstp dword [edi + 0x454]
call fcn.004175f0
test eax, eax
je 0x40929c
mov dword [eax + 0x3b4], 0x2710
call fcn.00426d20
push 0xc8
call esi
mov ecx, dword [edi + 0x20]
push 0
push 0
push 0xbe0
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret