Function at 0x4ada9a
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x4f421a
call fcn.004eadec
sub esp, 0x18
push ebx
call sub.ttpcomm.dll_Ordinal_1
mov ecx, 0x50502
cmp eax, ecx
je 0x4adad2
push 0x10
push 0x4fcd44
push str.Error_in_ttpcomm.dll__please_resetup_this_program_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
jmp 0x4adcd2
push esi
push edi
xor edi, edi
cmp dword [0x521da0], edi
je 0x4adc86
mov ebx, dword [0x521dac]
cmp ebx, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
je 0x4adb14
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ecx
push ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebx + 4]
push eax
call edi
call esi
push eax
add ebx, 8
push ebx
call edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push str.wWinMain
mov dword [0x517e2c], eax
call esi
push eax
call fcn.00404336
pop ecx
pop ecx
push edi
call sub.ole32.dll_OleInitialize
mov eax, 0x781
call fcn.0043b58c
push dword [ebp + 8]
mov ebx, 0x522208
mov eax, ebx
call fcn.004ad4e7
mov esi, 0x522254
push esi
lea edi, [ebp + 8]
call fcn.004031b3
and dword [ebp - 4], 0
push str.CacheCacheList.xml
mov eax, edi
push eax
call fcn.0040328b
push dword [ebp + 8]
mov edi, 0x522558
call fcn.004c3286
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call sub.ttpcomm.dll_Ordinal_3
pop ecx
push esi
lea edi, [ebp - 0x10]
call fcn.004031b3
push str.AddIn
mov eax, edi
push eax
mov byte [ebp - 4], 1
call fcn.0040328b
mov esi, dword [ebp - 0x10]
push 0
push esi
mov edi, 0x5224b0
push edi
call fcn.004b7c8a
test eax, eax
mov dword [ebp - 0x14], eax
jge 0x4adbf3
mov esi, ebx
call fcn.004ad646
call sub.ole32.dll_OleUninitialize
push 0x10
push dword [0x52224c]
push str.Sound_Library_init_failed__the_player_can_not_run_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4adc6d
push eax
call fcn.004013aa
jmp 0x4adc6d
lea eax, [esi - 0xc]
mov byte [ebp - 4], 0
cmp eax, dword [0x51a43c]
je 0x4adc08
push eax
call fcn.004013aa
mov esi, 0x5221fc
call fcn.004a2942
call sub.ttpcomm.dll_Ordinal_200
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.004ad669
mov esi, 0x521da0
mov dword [ebp - 0x14], eax
call fcn.004a268f
call sub.ttpcomm.dll_Ordinal_201
mov esi, 0x5221fc
call fcn.004a298f
mov eax, edi
call fcn.004b8023
push 2
mov esi, 0x522558
call fcn.004c32a8
mov esi, ebx
call fcn.004ad646
call sub.ole32.dll_OleUninitialize
mov eax, dword [0x517e2c]
cmp eax, 0xffffffff
je 0x4adc6d
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x4adc81
push eax
call fcn.004013aa
mov eax, dword [ebp - 0x14]
jmp 0x4adcd0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.004a22a1
push 0x1388
push dword [0x521da4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4adcbd
lea eax, [ebp - 0x24]
push eax
call fcn.004ad9bd
pop ecx
lea eax, [ebp - 0x24]
call fcn.004a225f
lea esi, [ebp - 0x20]
call fcn.004c259d
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10