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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e6420
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 [0x5143cc]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x5143cc
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.00417830
cmp eax, edi
je 0x40bb6c
mov eax, dword [esi + 0x94]
cmp dword [eax - 0xc], 0
lea edi, [esi + 0x94]
je 0x40bb6c
push eax
push ebx
xor eax, eax
call fcn.00417f60
test eax, eax
je 0x40bb6c
lea eax, [esp + 0x18]
push edi
push eax
mov ebx, str.setup.xml
call fcn.00413a60
add esp, 8
mov byte [esp + 0x28], 1
mov eax, dword [eax]
push esi
mov ecx, eax
call fcn.0040fb60
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 0x40b8d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x40bb6c
push str.InitBugReportSupport
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
lea esi, [esp + 0x18]
call fcn.0040fb40
mov byte [esp + 0x28], 2
mov ecx, dword [eax]
call fcn.004048c0
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 0x40b928
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00483b70
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x60], ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x40b9b0
lea edx, [esp + 0x18]
push edi
push edx
mov ebx, str.UpdateTrayIcon.exe
call fcn.00413a60
mov eax, dword [eax]
add esp, 8
push eax
call esi
lea ecx, [esp + 0x18]
mov ebx, eax
call fcn.004016d0
test ebx, ebx
je 0x40b9b0
push str.CheckTrayIcon
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
lea eax, [esp + 0x18]
push edi
push eax
mov ebx, str.UpdateTrayIcon.exe
call fcn.00413a60
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.00422000
add esp, 0x14
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 0
call fcn.004016d0
lea ecx, [esp + 0x18]
push edi
push ecx
mov ebx, str.TXSSOSetup.exe
call fcn.00413a60
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 0x40b9ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x40ba4b
push str.run_TXSSOSetup.exe_begin....
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
lea ecx, [esp + 0x18]
push edi
push ecx
mov ebx, str.TXSSOSetup.exe
call fcn.00413a60
mov byte [esp + 0x30], 4
mov eax, dword [eax]
push 0x4ef7d8
push eax
call fcn.00421ef0
mov edx, dword [ebp + 8]
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [edx + 0x74], eax
mov byte [esp + 0x28], 0
call fcn.004016d0
push str.run_TXSSOSetup.exe_end....
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
lea eax, [esp + 0x18]
push edi
push eax
mov ebx, str.PackageConf.dll
call fcn.00413a60
add esp, 8
lea edi, [esp + 0x10]
mov byte [esp + 0x28], 5
call fcn.00401410
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 0x40ba91
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 0x40bb5a
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov esi, dword [ebp + 8]
mov dword [esi + 0x78], eax
mov ecx, 0x5158b0
je 0x40bb5f
push str.LoadLibrary_PackConfDll.dll
call fcn.00489840
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 0x40bb4e
cmp dword [esi + 0x80], 0
je 0x40bb4e
cmp dword [esi + 0x84], 0
je 0x40bb4e
cmp dword [esi + 0x88], 0
je 0x40bb4e
test eax, eax
je 0x40bb4e
mov dword [esp + 0x14], 1
jmp 0x40bb6c
push str.Cant_Find_PackageConf_Proc_address
mov ecx, 0x5158b0
jmp 0x40bb64
mov ecx, 0x5158b0
push str.Cant_Find_PackageConf.dll
call fcn.00489840
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 0x40bb94
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