Function at 0x40b5e0
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e6520
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x5143ac]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x5143ac
mov dword [esp + 0x14], edi
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov esi, dword [ebp + 8]
lea ebx, [esi + 0x9c]
mov eax, ebx
mov dword [esp + 0x28], edi
call fcn.004177f0
cmp eax, edi
je 0x40b94c
mov eax, dword [esi + 0x94]
cmp dword [eax - 0xc], 0
lea edi, [esi + 0x94]
je 0x40b94c
push eax
push ebx
xor eax, eax
call fcn.00417f20
test eax, eax
je 0x40b94c
lea eax, [esp + 0x18]
push edi
push eax
mov ebx, str.setup.xml
call fcn.00413810
add esp, 8
mov byte [esp + 0x28], 1
mov eax, dword [eax]
push esi
mov ecx, eax
call fcn.0040f910
xor ebx, ebx
mov esi, eax
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 0x40b6b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x40b94c
push str.InitBugReportSupport
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
lea esi, [esp + 0x18]
call fcn.0040f8f0
mov byte [esp + 0x28], 2
mov ecx, dword [eax]
call fcn.00404850
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 0x40b708
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00483ae0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x60], ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x40b790
lea edx, [esp + 0x18]
push edi
push edx
mov ebx, str.UpdateTrayIcon.exe
call fcn.00413810
mov eax, dword [eax]
add esp, 8
push eax
call esi
lea ecx, [esp + 0x18]
mov ebx, eax
call fcn.00416ce0
test ebx, ebx
je 0x40b790
push str.CheckTrayIcon
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
lea eax, [esp + 0x18]
push edi
push eax
mov ebx, str.UpdateTrayIcon.exe
call fcn.00413810
push 0
mov byte [esp + 0x34], 3
mov eax, dword [eax]
push 0x1388
push eax
xor ecx, ecx
mov edx, str._CheckTrayIcon_1
call fcn.00422020
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 0
call fcn.00416ce0
lea ecx, [esp + 0x18]
push edi
push ecx
mov ebx, str.TXSSOSetup.exe
call fcn.00413810
mov eax, dword [eax]
add esp, 8
push eax
call esi
mov ebx, eax
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 0x40b7ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x40b82b
push str.run_TXSSOSetup.exe_begin....
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
lea ecx, [esp + 0x18]
push edi
push ecx
mov ebx, str.TXSSOSetup.exe
call fcn.00413810
mov byte [esp + 0x30], 4
mov eax, dword [eax]
push 0x4ef7d8
push eax
call fcn.00421f10
mov edx, dword [ebp + 8]
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [edx + 0x74], eax
mov byte [esp + 0x28], 0
call fcn.00416ce0
push str.run_TXSSOSetup.exe_end....
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
lea eax, [esp + 0x18]
push edi
push eax
mov ebx, str.PackageConf.dll
call fcn.00413810
add esp, 8
lea edi, [esp + 0x10]
mov byte [esp + 0x28], 5
call fcn.004013f0
mov byte [esp + 0x28], 0
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 0x40b871
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x10]
push edi
call esi
test eax, eax
je 0x40b93a
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov esi, dword [ebp + 8]
mov dword [esi + 0x78], eax
mov ecx, 0x515890
je 0x40b93f
push str.LoadLibrary_PackConfDll.dll
call fcn.004899e0
mov ecx, dword [esi + 0x78]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
push str.PC_StartInstall
push ecx
call edi
mov edx, dword [esi + 0x78]
push str.PC_WORK
push edx
mov dword [esi + 0x7c], eax
call edi
mov dword [esi + 0x80], eax
mov eax, dword [esi + 0x78]
push str.PC_EndInstall
push eax
call edi
mov ecx, dword [esi + 0x78]
push str.PC_KillProcess
push ecx
mov dword [esi + 0x84], eax
call edi
mov edx, dword [esi + 0x78]
push str.PC_CancelInstall
push edx
mov dword [esi + 0x88], eax
call edi
cmp dword [esi + 0x7c], 0
mov dword [esi + 0x8c], eax
je 0x40b92e
cmp dword [esi + 0x80], 0
je 0x40b92e
cmp dword [esi + 0x84], 0
je 0x40b92e
cmp dword [esi + 0x88], 0
je 0x40b92e
test eax, eax
je 0x40b92e
mov dword [esp + 0x14], 1
jmp 0x40b94c
push str.Cant_Find_PackageConf_Proc_address
mov ecx, 0x515890
jmp 0x40b944
mov ecx, 0x515890
push str.Cant_Find_PackageConf.dll
call fcn.004899e0
add esp, 4
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b974
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4