Function at 0x4ae1e1
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x4f51fb
call fcn.004ebd20
sub esp, 0x18
push ebx
call sub.ttpcomm.dll_Ordinal_1
mov ecx, 0x50502
cmp eax, ecx
je 0x4ae219
push 0x10
push 0x4fdd3c
push str.Error_in_ttpcomm.dll__please_resetup_this_program_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
jmp 0x4ae419
push esi
push edi
xor edi, edi
cmp dword [0x522da0], edi
je 0x4ae3cd
mov ebx, dword [0x522dac]
cmp ebx, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
je 0x4ae25b
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 [0x518e2c], eax
call esi
push eax
call fcn.00404254
pop ecx
pop ecx
push edi
call sub.ole32.dll_OleInitialize
mov eax, 0x781
call fcn.0043ac29
push dword [ebp + 8]
mov ebx, 0x523208
mov eax, ebx
call fcn.004adc2d
mov esi, 0x523254
push esi
lea edi, [ebp + 8]
call fcn.00403098
and dword [ebp - 4], 0
push str.CacheCacheList.xml
mov eax, edi
push eax
call fcn.00403184
push dword [ebp + 8]
mov edi, 0x523558
call fcn.004c3d50
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.00403098
push str.AddIn
mov eax, edi
push eax
mov byte [ebp - 4], 1
call fcn.00403184
mov esi, dword [ebp - 0x10]
push 0
push esi
mov edi, 0x5234b0
push edi
call fcn.004b8365
test eax, eax
mov dword [ebp - 0x14], eax
jge 0x4ae33a
mov esi, ebx
call fcn.004add8c
call sub.ole32.dll_OleUninitialize
push 0x10
push dword [0x52324c]
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 [0x51b43c]
je 0x4ae3b4
push eax
call fcn.004013b2
jmp 0x4ae3b4
lea eax, [esi - 0xc]
mov byte [ebp - 4], 0
cmp eax, dword [0x51b43c]
je 0x4ae34f
push eax
call fcn.004013b2
mov esi, 0x5231fc
call fcn.004a2fc6
call sub.ttpcomm.dll_Ordinal_200
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.004addaf
mov esi, 0x522da0
mov dword [ebp - 0x14], eax
call fcn.004a2ccc
call sub.ttpcomm.dll_Ordinal_201
mov esi, 0x5231fc
call fcn.004a3013
mov eax, edi
call fcn.004b86ff
push 2
mov esi, 0x523558
call fcn.004c3d72
mov esi, ebx
call fcn.004add8c
call sub.ole32.dll_OleUninitialize
mov eax, dword [0x518e2c]
cmp eax, 0xffffffff
je 0x4ae3b4
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4ae3c8
push eax
call fcn.004013b2
mov eax, dword [ebp - 0x14]
jmp 0x4ae417
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.004a28de
push 0x1388
push dword [0x522da4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4ae404
lea eax, [ebp - 0x24]
push eax
call fcn.004ae104
pop ecx
lea eax, [ebp - 0x24]
call fcn.004a289c
lea esi, [ebp - 0x20]
call fcn.00492392
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10