Function at 0x4400c0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x5c88bd
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x68a3cc], eax
cmp eax, 0xffffffff
jne 0x4405d9
xor al, al
cmp al, bl
jne 0x44017c
lea eax, [esp + 0xd8]
push 0x5fcf00
push eax
call fcn.00423280
add esp, 8
mov esi, eax
mov edi, 1
or dword [esp + 0x18], edi
mov dword [esp + 0x224], ebx
cmp dword [0x695aa8], ebx
je 0x44015f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x695aa8]
je 0x44015f
call fcn.004443b0
jmp 0x440164
mov al, byte [0x68a580]
cmp al, bl
je 0x440181
push esi
call fcn.00445fa0
add esp, 4
cmp eax, edi
jb 0x440181
mov byte [esp + 0x17], 1
jmp 0x440185
mov edi, 1
mov byte [esp + 0x17], bl
test byte [esp + 0x18], 1
mov dword [esp + 0x224], 0xffffffff
je 0x4401c6
mov ecx, dword [esp + 0xf4]
and dword [esp + 0x18], 0xfffffffe
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xec], 8
jb 0x4401c6
mov edx, dword [esp + 0xd8]
push edx
call fcn.00584768
add esp, 4
cmp byte [esp + 0x17], bl
je 0x4405d2
push str.Thread_module_initialization_failed:_impossible_to_allocate_index_in_thread_local_storage
lea ecx, [esp + 0xdc]
call fcn.00402bb0
mov ebp, 7
xor eax, eax
mov dword [esp + 0x224], edi
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], ax
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
xor ecx, ecx
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], cx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov byte [esp + 0x224], 3
call fcn.00425e70
cmp eax, ebx
je 0x44026d
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0xe0]
push edx
mov ecx, eax
call fcn.00429320
cmp eax, ebx
jne 0x44027d
lea eax, [esp + 0xd8]
push eax
call fcn.004292f0
add esp, 4
mov esi, eax
call fcn.00420510
mov dword [esp + 0x20], eax
mov byte [esp + 0x224], 4
call fcn.00420510
mov dword [esp + 0x24], eax
mov byte [esp + 0x224], 5
call fcn.00420510
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
push str.wx.sys_error
lea ecx, [esp + 0x1f8]
mov byte [esp + 0x228], 6
call fcn.00402bb0
mov dword [esp + 0x154], edi
mov dword [esp + 0x15c], str....._srcmsw_thread.cpp
mov dword [esp + 0x164], str.wxThreadModule::OnInit
mov dword [esp + 0x160], 0x5a4
mov dword [esp + 0x168], 0x5fcf00
mov dword [esp + 0x16c], ebx
mov dword [esp + 0x170], ebx
mov dword [esp + 0x174], ebx
mov dword [esp + 0x178], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
mov dword [esp + 0x17c], eax
mov dword [esp + 0x180], ebx
mov dword [esp + 0x198], ebp
mov dword [esp + 0x194], ebx
mov word [esp + 0x184], cx
mov dword [esp + 0x1a0], ebx
mov dword [esp + 0x1a4], ebx
mov byte [esp + 0x224], 8
call sub.KERNEL32.dll_GetLastError
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1fc]
push edx
lea ecx, [esp + 0x190]
mov edi, eax
call fcn.00402610
mov ecx, dword [esp + 0x180]
cmp ecx, ebx
jne 0x4403f0
push 0x20
call fcn.00584773
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov byte [esp + 0x224], 9
cmp esi, ebx
je 0x4403df
push 0x64
call fcn.00447710
push 4
push eax
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
call fcn.00585c5e
mov dword [esi], eax
push 0x64
mov byte [esp + 0x234], 0xa
call fcn.00447710
push 4
push eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
call fcn.00585c5e
add esp, 0x18
mov dword [esi + 0x10], eax
mov ecx, esi
jmp 0x4403e1
xor ecx, ecx
mov byte [esp + 0x224], 8
mov dword [esp + 0x180], ecx
lea eax, [esp + 0x1f4]
push eax
call fcn.004775a0
lea ecx, [esp + 0x20]
mov dword [eax], edi
call fcn.0041de00
push eax
lea ecx, [esp + 0x158]
push ecx
call fcn.0040b680
mov edx, dword [esp + 0x1a8]
push edx
call fcn.005844d1
mov edi, 8
add esp, 0xc
cmp dword [esp + 0x198], edi
jb 0x440444
mov eax, dword [esp + 0x184]
push eax
call fcn.00584768
add esp, 4
mov esi, dword [esp + 0x180]
xor ecx, ecx
mov dword [esp + 0x198], ebp
mov dword [esp + 0x194], ebx
mov word [esp + 0x184], cx
mov dword [esp + 0x1c], esi
cmp esi, ebx
je 0x4404c3
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
push 0x40b5f0
push edx
push eax
mov byte [esp + 0x230], 0xb
call fcn.00447740
mov edi, dword [esi + 0x10]
push edi
mov dword [esi + 0x18], ebx
call fcn.005844d1
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push 0x475ea0
push ecx
push edx
mov byte [esp + 0x240], 7
call fcn.00447740
mov eax, dword [esi]
push eax
mov dword [esi + 8], ebx
call fcn.005844d1
push esi
call fcn.00584768
add esp, 0x24
mov edi, 8
mov eax, dword [esp + 0x210]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x208], edi
jb 0x4404ec
mov ecx, dword [esp + 0x1f4]
push ecx
call fcn.00584768
add esp, 4
xor edx, edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x208], ebp
mov dword [esp + 0x204], ebx
mov word [esp + 0x1f4], dx
mov byte [esp + 0x224], 3
call fcn.004020c0
mov eax, dword [esp + 0xd0]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xc8], edi
jb 0x44053e
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.00584768
add esp, 4
mov eax, dword [esp + 0xac]
xor edx, edx
push eax
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], dx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xa4], edi
jb 0x44057f
mov ecx, dword [esp + 0x90]
push ecx
call fcn.00584768
add esp, 4
mov eax, dword [esp + 0xf4]
xor edx, edx
push eax
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], dx
mov dword [esp + 0x228], 0xffffffff
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xec], edi
jb 0x4405cb
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.00584768
add esp, 4
mov al, 1
jmp 0x440117
xor al, al
jmp 0x440a85
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x440a31
mov edx, dword [0x68a3cc]
push edx
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x68a3cc], 0xffffffff
xor al, al
cmp al, bl
jne 0x440666
lea eax, [esp + 0xd8]
push 0x5fcf00
push eax
call fcn.00423280
add esp, 8
mov esi, eax
or dword [esp + 0x18], 2
mov dword [esp + 0x224], 0xc
cmp dword [0x695aa8], ebx
je 0x44064a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x695aa8]
je 0x44064a
call fcn.004443b0
jmp 0x44064f
mov al, byte [0x68a580]
cmp al, bl
je 0x440666
push esi
call fcn.00445fa0
add esp, 4
mov byte [esp + 0x17], 1
cmp eax, 1
jae 0x44066a
mov byte [esp + 0x17], bl
test byte [esp + 0x18], 2
mov dword [esp + 0x224], 0xffffffff
je 0x4406b1
mov ecx, dword [esp + 0xf4]
and dword [esp + 0x18], 0xfffffffd
push ecx
call fcn.005844d1
mov ebp, 8
add esp, 4
cmp dword [esp + 0xec], ebp
jb 0x4406b6
mov edx, dword [esp + 0xd8]
push edx
call fcn.00584768
add esp, 4
jmp 0x4406b6
mov ebp, 8
cmp byte [esp + 0x17], bl
je 0x4405d2
push str.Thread_module_initialization_failed:_cannot_store_value_in_thread_local_storage
lea ecx, [esp + 0x1d4]
call fcn.00402bb0
mov edi, 7
xor eax, eax
mov dword [esp + 0x224], 0xd
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], ax
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
xor ecx, ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], cx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov byte [esp + 0x224], 0xf
call fcn.00425e70
cmp eax, ebx
je 0x440746
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x1d8]
push edx
mov ecx, eax
call fcn.00429320
cmp eax, ebx
jne 0x440756
lea eax, [esp + 0x1d0]
push eax
call fcn.004292f0
add esp, 4
mov esi, eax
call fcn.00420510
mov dword [esp + 0x34], eax
mov byte [esp + 0x224], 0x10
call fcn.00420510
mov dword [esp + 0x38], eax
mov byte [esp + 0x224], 0x11
call fcn.00420510
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], ebx
push str.wx.sys_error
lea ecx, [esp + 0x1b0]
mov byte [esp + 0x228], 0x12
call fcn.00402bb0
mov dword [esp + 0xfc], 1
mov dword [esp + 0x104], str....._srcmsw_thread.cpp
mov dword [esp + 0x10c], str.wxThreadModule::OnInit
mov dword [esp + 0x108], 0x5b0
mov dword [esp + 0x110], 0x5fcf00
mov dword [esp + 0x114], ebx
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebx
mov dword [esp + 0x120], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], ebx
mov dword [esp + 0x140], edi
mov dword [esp + 0x13c], ebx
mov word [esp + 0x12c], cx
mov dword [esp + 0x148], ebx
mov dword [esp + 0x14c], ebx
mov byte [esp + 0x224], 0x14
call sub.KERNEL32.dll_GetLastError
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1b4]
push edx
lea ecx, [esp + 0x138]
mov esi, eax
call fcn.00402610
mov ecx, dword [esp + 0x128]
cmp ecx, ebx
jne 0x440898
push 0x20
call fcn.00584773
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x224], 0x15
cmp eax, ebx
je 0x440885
mov ecx, eax
call fcn.004287b0
jmp 0x440887
xor eax, eax
mov ecx, eax
mov byte [esp + 0x224], 0x14
mov dword [esp + 0x128], ecx
lea eax, [esp + 0x1ac]
push eax
call fcn.004775a0
lea ecx, [esp + 0x34]
mov dword [eax], esi
call fcn.0041de00
push eax
lea ecx, [esp + 0x100]
push ecx
call fcn.0040b680
mov edx, dword [esp + 0x150]
push edx
mov byte [esp + 0x230], 0x13
call fcn.005844d1
add esp, 0xc
cmp dword [esp + 0x140], ebp
jb 0x4408ef
mov eax, dword [esp + 0x12c]
push eax
call fcn.00584768
add esp, 4
xor ecx, ecx
mov word [esp + 0x12c], cx
mov ecx, dword [esp + 0x128]
mov dword [esp + 0x140], edi
mov dword [esp + 0x13c], ebx
mov esi, ecx
cmp ecx, ebx
je 0x440922
call fcn.0040c030
push esi
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x1c8]
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x1c0], ebp
jb 0x44094b
mov eax, dword [esp + 0x1ac]
push eax
call fcn.00584768
add esp, 4
xor ecx, ecx
mov word [esp + 0x1ac], cx
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c0], edi
mov dword [esp + 0x1bc], ebx
mov byte [esp + 0x224], 0xf
call fcn.004020c0
mov edx, dword [esp + 0x64]
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x5c], ebp
jb 0x440994
mov eax, dword [esp + 0x48]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x88]
xor ecx, ecx
push edx
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x80], ebp
jb 0x4409c9
mov eax, dword [esp + 0x6c]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x1ec]
xor ecx, ecx
push edx
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], cx
mov dword [esp + 0x228], 0xffffffff
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x1e4], ebp
jb 0x440a12
mov eax, dword [esp + 0x1d0]
push eax
call fcn.00584768
add esp, 4
xor ecx, ecx
mov dword [esp + 0x1e4], edi
mov dword [esp + 0x1e0], ebx
mov word [esp + 0x1d0], cx
mov al, 1
jmp 0x440602
push 0x18
call fcn.00584773
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x440a4c
push esi
call edi
jmp 0x440a4e
xor esi, esi
push 0x18
mov dword [0x695ab0], esi
call fcn.00584773
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x440a69
push esi
call edi
jmp 0x440a6b
xor esi, esi
push esi
mov dword [0x695aac], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x695aa8], eax
mov al, 1
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.00585b7b
add esp, 0x214
ret