Function at 0x40b5e0
Capabilities:
Create thread
Get common file path
Hide graphical window
Link many functions at runtime
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x44ff9c
mov eax, dword fs:[0]
push eax
mov eax, 0x1038
call fcn.00436dc0
mov eax, dword [0x468110]
xor eax, esp
mov dword [esp + 0x1034], eax
push ebx
push esi
push edi
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 0x1048]
mov dword fs:[0], eax
xor eax, eax
push 0x7fe
mov esi, ecx
push eax
lea ecx, [esp + 0x84e]
push ecx
mov word [esp + 0x850], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x844]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x456eac
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x44e]
mov dword [esp + 0x1058], 0
push ecx
mov word [esp + 0x450], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x200
lea edx, [esp + 0x448]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str....._
lea eax, [esp + 0x448]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x444]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esp + 0x2c], 0
jne 0x40b6ea
lea ecx, [esp + 0x18]
mov dword [esp + 0x1050], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
jmp 0x40b94e
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x246]
push eax
mov word [esp + 0x248], dx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x3e]
push edx
mov word [esp + 0x40], cx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp dword [esp + 0x30], 8
jae 0x40b733
lea eax, [esp + 0x1c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.Program
push eax
lea eax, [esp + 0x3c]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x34]
push ecx
call ebx
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x40b762
lea eax, [esp + 0x1c]
push str.ProgramDownloadClient.dll
push eax
lea edx, [esp + 0x244]
push edx
call edi
lea eax, [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [esp + 0x844]
push ecx
mov edi, eax
call ebx
test edi, edi
je 0x40b8cf
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitDownloadClient
push edi
call ebx
push str.UnInitDownloadClient
push edi
mov dword [esi + 0x24], eax
call ebx
push str.LaunchThunder
push edi
mov dword [esi + 0x28], eax
call ebx
push str.AsynCreateDownloadTask
push edi
mov dword [esi + 0x2c], eax
call ebx
push str.AsynDeleteTask
push edi
mov dword [esi + 0x30], eax
call ebx
push str.AsynStopTask
push edi
mov dword [esi + 0x34], eax
call ebx
push str.AsynStartTask
push edi
mov dword [esi + 0x38], eax
call ebx
push str.AsynGetTaskInfo
push edi
mov dword [esi + 0x3c], eax
call ebx
push str.AttachTaskStatusChangedEvent
push edi
mov dword [esi + 0x40], eax
call ebx
push str.DetachTaskStatusChangedEvent
push edi
mov dword [esi + 0x44], eax
call ebx
push str.InsertListenerTask
push edi
mov dword [esi + 0x48], eax
call ebx
push str.RemoveListenerTask
push edi
mov dword [esi + 0x4c], eax
call ebx
push str.AsynCreateP2spEmuleTask
push edi
mov dword [esi + 0x50], eax
call ebx
push str.ShowConfigPanel
push edi
mov dword [esi + 0x54], eax
call ebx
push str.ShowThunderFrameWnd
push edi
mov dword [esi + 0x58], eax
call ebx
push str.SetOpenOnComplete
push edi
mov dword [esi + 0x5c], eax
call ebx
push str.AsynDeleteTaskIntelligently
push edi
mov dword [esi + 0x60], eax
call ebx
push str.AsynAttachThunderExitEvent
push edi
mov dword [esi + 0x64], eax
call ebx
push str.AttachFireEventCallback
push edi
mov dword [esi + 0x68], eax
call ebx
push str.AsynCreatePredownloadTask
push edi
mov dword [esi + 0x6c], eax
call ebx
mov dword [esi + 0x70], eax
push str.AsynCancelPredownloadTask
push edi
call ebx
push str.AsynAttachTaskNameChangedEvent
push edi
mov dword [esi + 0x74], eax
call ebx
push str.AsynSetXLConfigValue
push edi
mov dword [esi + 0x78], eax
call ebx
push str.AsynCommitTaskToBackground
push edi
mov dword [esi + 0x7c], eax
call ebx
push str.AsynShowPredownloadTask
push edi
mov dword [esi + 0x80], eax
call ebx
push str.AsynFindTask
push edi
mov dword [esi + 0x84], eax
call ebx
push str.AsynBatchCreateTask
push edi
mov dword [esi + 0x88], eax
call ebx
mov dword [esi + 0x8c], eax
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push ecx
mov dword [eax], 0
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.0040df90
test eax, eax
je 0x40b905
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x40b980
push 0
push 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
mov esi, dword [esi + 0x24]
add esp, 0x18
test esi, esi
je 0x40b934
call esi
mov esi, eax
jmp 0x40b937
or esi, 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x1050], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x1048]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1034]
xor ecx, esp
call fcn.00436772
add esp, 0x1044
ret