Function at 0x440b30
Capabilities:
Resolve function by parsing pe exports
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x5c8990
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov esi, dword [esp + 0x160]
push esi
lea eax, [esp + 0x20]
push 0x43e7f0
xor ebx, ebx
push eax
mov dword [esp + 0x24], ebx
call fcn.00570580
add esp, 0xc
mov ecx, dword [0x68a3cc]
push esi
push ecx
mov dword [esp + 0x160], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x441052
xor al, al
lea ebx, [ebx]
cmp al, bl
jne 0x440c11
lea edx, [esp + 0x128]
push 0x5fcf00
push edx
call fcn.00423280
add esp, 8
mov esi, eax
or dword [esp + 0x18], 1
mov byte [esp + 0x158], 1
cmp dword [0x695aa8], ebx
je 0x440bf5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x695aa8]
je 0x440bf5
call fcn.004443b0
jmp 0x440bfa
mov al, byte [0x68a580]
cmp al, bl
je 0x440c11
push esi
call fcn.00445fa0
add esp, 4
mov byte [esp + 0x17], 1
cmp eax, 1
jae 0x440c15
mov byte [esp + 0x17], bl
test byte [esp + 0x18], 1
mov dword [esp + 0x158], ebx
je 0x440c52
mov eax, dword [esp + 0x144]
and dword [esp + 0x18], 0xfffffffe
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x13c], 8
jb 0x440c52
mov ecx, dword [esp + 0x128]
push ecx
call fcn.00584768
add esp, 4
cmp byte [esp + 0x17], bl
je 0x441030
push str.Cannot_start_thread:_error_writing_TLS.
lea ecx, [esp + 0xe4]
call fcn.00402bb0
mov ebp, 7
xor edx, edx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], dx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
xor eax, eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], ax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov byte [esp + 0x158], 4
call fcn.00425e70
cmp eax, ebx
je 0x440cd4
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0xe8]
push ecx
mov ecx, eax
call fcn.00429320
cmp eax, ebx
jne 0x440ce4
lea edx, [esp + 0xe0]
push edx
call fcn.004292f0
add esp, 4
mov esi, eax
call fcn.00420510
mov dword [esp + 0x2c], eax
mov byte [esp + 0x158], 5
call fcn.00420510
mov dword [esp + 0x30], eax
mov byte [esp + 0x158], 6
call fcn.00420510
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
push str.wx.sys_error
lea ecx, [esp + 0x108]
mov byte [esp + 0x15c], 7
call fcn.00402bb0
mov dword [esp + 0x88], 1
mov dword [esp + 0x90], str....._srcmsw_thread.cpp
mov dword [esp + 0x98], str.wxThreadInternal::DoThreadStart
mov dword [esp + 0x94], 0x282
mov dword [esp + 0x9c], 0x5fcf00
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xb0], eax
xor eax, eax
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], ax
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
mov byte [esp + 0x158], 9
call sub.KERNEL32.dll_GetLastError
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x10c]
push ecx
lea ecx, [esp + 0xc4]
mov edi, eax
call fcn.00402610
mov ecx, dword [esp + 0xb4]
cmp ecx, ebx
jne 0x440e5b
push 0x20
call fcn.00584773
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
mov byte [esp + 0x158], 0xa
cmp esi, ebx
je 0x440e4a
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 + 0x168], 0xb
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 0x440e4c
xor ecx, ecx
mov byte [esp + 0x158], 9
mov dword [esp + 0xb4], ecx
lea edx, [esp + 0x104]
push edx
call fcn.004775a0
lea ecx, [esp + 0x2c]
mov dword [eax], edi
call fcn.0041de00
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.0040b680
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.005844d1
mov edi, 8
add esp, 0xc
cmp dword [esp + 0xcc], edi
jb 0x440eaf
mov edx, dword [esp + 0xb8]
push edx
call fcn.00584768
add esp, 4
mov esi, dword [esp + 0xb4]
xor eax, eax
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], ax
mov dword [esp + 0x28], esi
cmp esi, ebx
je 0x440f2e
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
push 0x40b5f0
push ecx
push edx
mov byte [esp + 0x164], 0xc
call fcn.00447740
mov edi, dword [esi + 0x10]
push edi
mov dword [esi + 0x18], ebx
call fcn.005844d1
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push 0x475ea0
push eax
push ecx
mov byte [esp + 0x174], 8
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 edx, dword [esp + 0x120]
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x118], edi
jb 0x440f57
mov eax, dword [esp + 0x104]
push eax
call fcn.00584768
add esp, 4
xor ecx, ecx
mov word [esp + 0x104], cx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x118], ebp
mov dword [esp + 0x114], ebx
mov byte [esp + 0x158], 4
call fcn.004020c0
mov edx, dword [esp + 0x5c]
push edx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x54], edi
jb 0x440fa0
mov eax, dword [esp + 0x40]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x80]
xor ecx, ecx
push edx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x78], edi
jb 0x440fd2
mov eax, dword [esp + 0x64]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0xfc]
xor ecx, ecx
push edx
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], cx
mov byte [esp + 0x15c], bl
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xf4], edi
jb 0x441011
mov eax, dword [esp + 0xe0]
push eax
call fcn.00584768
add esp, 4
xor ecx, ecx
mov dword [esp + 0xf4], ebp
mov dword [esp + 0xf0], ebx
mov word [esp + 0xe0], cx
mov al, 1
jmp 0x440bb0
mov dword [esp + 0x158], 0xffffffff
cmp byte [esp + 0x1c], bl
jne 0x44104d
mov edx, dword [esp + 0x24]
push edx
call dword [esp + 0x24]
add esp, 4
or eax, 0xffffffff
jmp 0x44107c
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov esi, eax
mov dword [esp + 0x158], 0xffffffff
cmp byte [esp + 0x1c], bl
jne 0x44107a
mov eax, dword [esp + 0x24]
push eax
call dword [esp + 0x24]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.00585b7b
add esp, 0x148
ret