Function at 0x404080
Capabilities:
Check if file exists
Create thread
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e777
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
push esi
push edi
mov eax, dword [0x4276b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf8], ecx
push str.title
mov ecx, dword [ebp - 0xf8]
add ecx, 0x2c
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov ecx, dword [ebp - 0xf8]
mov dword [ecx + 0x278], eax
push str.btnShot
mov ecx, dword [ebp - 0xf8]
add ecx, 0x2c
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov edx, dword [ebp - 0xf8]
mov dword [edx + 0x27c], eax
push str.btnMin
mov ecx, dword [ebp - 0xf8]
add ecx, 0x2c
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov ecx, dword [ebp - 0xf8]
mov dword [ecx + 0x280], eax
push str.btnClose
mov ecx, dword [ebp - 0xf8]
add ecx, 0x2c
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov edx, dword [ebp - 0xf8]
mov dword [edx + 0x284], eax
push str.btnStart
mov ecx, dword [ebp - 0xf8]
add ecx, 0x2c
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov ecx, dword [ebp - 0xf8]
mov dword [ecx + 0x28c], eax
push str.btnNew
mov ecx, dword [ebp - 0xf8]
add ecx, 0x2c
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov edx, dword [ebp - 0xf8]
mov dword [edx + 0x290], eax
push str.btnBook
mov ecx, dword [ebp - 0xf8]
add ecx, 0x2c
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov ecx, dword [ebp - 0xf8]
mov dword [ecx + 0x294], eax
push str.btnError
mov ecx, dword [ebp - 0xf8]
add ecx, 0x2c
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov edx, dword [ebp - 0xf8]
mov dword [edx + 0x298], eax
push str.btnMore
mov ecx, dword [ebp - 0xf8]
add ecx, 0x2c
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov ecx, dword [ebp - 0xf8]
mov dword [ecx + 0x29c], eax
push str.tool_more
mov ecx, dword [ebp - 0xf8]
add ecx, 0x2c
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov edx, dword [ebp - 0xf8]
mov dword [edx + 0x2b0], eax
push str.tool1
mov ecx, dword [ebp - 0xf8]
add ecx, 0x2c
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov ecx, dword [ebp - 0xf8]
mov dword [ecx + 0x2a0], eax
push str.tool2
mov ecx, dword [ebp - 0xf8]
add ecx, 0x2c
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov edx, dword [ebp - 0xf8]
mov dword [edx + 0x2a4], eax
push str.tool3
mov ecx, dword [ebp - 0xf8]
add ecx, 0x2c
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov ecx, dword [ebp - 0xf8]
mov dword [ecx + 0x2a8], eax
push str.tool4
mov ecx, dword [ebp - 0xf8]
add ecx, 0x2c
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov edx, dword [ebp - 0xf8]
mov dword [edx + 0x2ac], eax
push str.www.baidu.com
call fcn.00403770
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xc8
jne 0x404433
push str.http:__www.koo9.com_game_LiveUpdate.exe
push 0x429f08
call fcn.00405860
add esp, 8
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.DuiLib.dll_public:_static_class_DuiLib::CDuiString___cdecl_DuiLib::CPaintManagerUI::GetInstancePath_void_]
add esp, 4
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x100], ecx
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x100]
sub esp, 0x84
mov ecx, 0x21
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push str._sLiveUpdate.exe
push 0x429f0c
call fcn.00405860
add esp, 0x8c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov ecx, 0x429f0c
call fcn.00404fb0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40433e
push ecx
mov ecx, esp
mov dword [ebp - 0x9c], esp
push 0x429f0c
call fcn.00404ef0
mov dword [ebp - 0x104], eax
call fcn.004036b0
add esp, 4
jmp 0x404355
push 0
push 0
push 0
push 0x403b40
push 0
push 0
call fcn.0040a158
add esp, 0x18
push str.ieWebBrowser
mov ecx, dword [ebp - 0xf8]
add ecx, 0x2c
call dword [sym.imp.DuiLib.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov edx, dword [ebp - 0xf8]
mov dword [edx + 0x288], eax
mov eax, dword [ebp - 0xf8]
cmp dword [eax + 0x288], 0
je 0x404433
cmp dword [ebp - 0xf8], 0
je 0x4043a5
mov ecx, dword [ebp - 0xf8]
add ecx, 0x274
mov dword [ebp - 0x108], ecx
jmp 0x4043af
mov dword [ebp - 0x108], 0
mov edx, dword [ebp - 0x108]
push edx
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 0x288]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CWebBrowserUI::SetWebBrowserEventHandler_class_DuiLib::CWebBrowserEventHandler__]
mov ecx, dword [ebp - 0xf8]
mov ecx, dword [ecx + 0x288]
call dword [sym.imp.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CWebBrowserUI::GetHomePage_void_]
cmp eax, 0x422df0
je 0x4043f8
push 0x422e30
mov edx, dword [ebp - 0xf8]
mov ecx, dword [edx + 0x288]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CWebBrowserUI::SetHomePage_wchar_t_const__]
push str.http:__www.koo9.com_game__game
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 0x288]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CWebBrowserUI::Navigate2_wchar_t_const__]
push 1
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ecx + 0x288]
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 0x288]
mov edx, dword [edx]
mov eax, dword [edx + 0xcc]
call eax
lea ecx, [ebp - 0xbc]
push ecx
mov edx, dword [ebp - 0xf8]
mov ecx, dword [edx + 0x2b4]
call fcn.00401860
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
call fcn.004019f0
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x9d], al
lea ecx, [ebp - 0xbc]
call fcn.00401990
movzx eax, byte [ebp - 0x9d]
test eax, eax
je 0x4044e4
lea ecx, [ebp - 0xd8]
push ecx
mov edx, dword [ebp - 0xf8]
mov ecx, dword [edx + 0x2b4]
call fcn.00401860
mov dword [ebp - 0x110], eax
push 0x2010
push 0x40
push 0x40
push 1
mov ecx, dword [ebp - 0x110]
call fcn.004019f0
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xd8]
call fcn.00401990
mov eax, dword [ebp - 0x14]
push eax
push 1
push 0x80
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0xf4]
push eax
mov ecx, dword [ebp - 0xf8]
mov ecx, dword [ecx + 0x2b4]
call fcn.004017a0
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], edx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x118]
call fcn.004019f0
push eax
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 0x278]
mov edx, dword [ebp - 0xf8]
mov eax, dword [edx + 0x278]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x2c]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00401990
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret