Function at 0x40f2e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bc6a
mov eax, dword fs:[0]
push eax
sub esp, 0x6a0
mov eax, dword [0x536324]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebp - 0x540]
call fcn.00408ea0
push 0
push 0x190
push 0x1f4
push 0
push 0
push 0
push 0x96c80000
push 0x48ef54
push 0
lea ecx, [ebp - 0x540]
mov dword [ebp - 4], 0
call sub.DuiLib.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 1
push eax
call fcn.0040c760
mov ecx, eax
call fcn.0040d0c0
push eax
lea ecx, [ebp - 0x40]
call fcn.0040dab0
lea ecx, [ebp - 0xb8]
call fcn.0040bd60
cmp dword [ebx + 0x18], 8
lea esi, [ebx + 4]
jb 0x40f3a7
mov eax, dword [esi]
jmp 0x40f3a9
mov eax, esi
push 1
push 0x10
push 0x30
push eax
lea ecx, [ebp - 0x5f4]
call fcn.0040d2f0
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 2
push eax
push 0x14
push 0x400
lea eax, [ebp - 0x5f4]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x88]
call fcn.00409d00
lea eax, [ebp - 0x544]
mov byte [ebp - 4], 3
push eax
push 0
lea eax, [ebp - 0x88]
push eax
push 0x40dea0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp - 0x540]
mov edi, eax
call sub.DuiLib.dll_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_
lea ecx, [ebp - 0x540]
call sub.DuiLib.dll_public:_unsigned_int___thiscall_DuiLib::CWindowWnd::ShowModal_void_
cmp eax, 1
je 0x40f442
lea ecx, [ebp - 0x88]
call fcn.00409df0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x40f491
lea ecx, [ebp - 0x5f4]
call fcn.0040f6f0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 8
jb 0x40f45c
mov esi, dword [esi]
push 1
push 0x10
push 0x20
push esi
lea ecx, [ebp - 0x6ac]
call fcn.0040d450
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x6ac]
mov ecx, ebx
push eax
call fcn.0040f780
lea ecx, [ebp - 0x6ac]
mov bl, al
call fcn.0040db70
lea ecx, [ebp - 0x88]
call fcn.0040d990
mov ecx, dword [ebp - 0x5f4]
mov ecx, dword [ecx + 4]
mov dword [ebp + ecx - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x5f4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x5f8], eax
lea ecx, [ebp - 0x5f0]
call fcn.004021a0
mov eax, dword [ebp - 0x5f4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x5f4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x5f8], eax
lea eax, [ebp - 0x58c]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00413db2
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.0040bd60
lea ecx, [ebp - 0x510]
mov dword [ebp - 0xcc], vtable.network::DownloadListener.0
mov dword [ebp - method.DuiLib::IQueryControlText.virtual_0], vtable.DuiLib::WindowImplBase.0
mov dword [ebp - method.DuiLib::WindowImplBase.1.virtual_0], vtable.DuiLib::WindowImplBase.1.0
mov dword [ebp - method.DuiLib::WindowImplBase.2.virtual_0], vtable.DuiLib::WindowImplBase.2.0
mov dword [ebp - method.DuiLib::WindowImplBase.3.virtual_0], vtable.DuiLib::WindowImplBase.3.0
mov dword [ebp - method.DuiLib::WindowImplBase.4.virtual_0], vtable.DuiLib::WindowImplBase.4.0
mov dword [ebp - method.DuiLib::WindowImplBase.5.virtual_0], vtable.DuiLib::WindowImplBase.5.0
call sub.DuiLib.dll_public_virtual:_void___thiscall_DuiLib::CPaintManagerUI::destructor_void_
lea ecx, [ebp - 0x52c]
call sub.DuiLib.dll_public:_void___thiscall_DuiLib::CStdStringPtrMap::destructor_void_
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00462ba5
mov esp, ebp
pop ebp
ret