Function at 0x1002b240
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
cmp esi, ebx
je 0x1002b55a
mov eax, dword [esi + 0x30]
cmp eax, 0x9f3c2d33
je 0x1002b278
cmp eax, 0xa029a697
je 0x1002b278
cmp eax, 0xf03b7906
je 0x1002b278
lea eax, [ebx + 0x15]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x48], ebx
je 0x1002b29a
push str.Unable_to_close_due_to_unfinalised_statements
push 5
mov ecx, esi
call fcn.1002dcd0
add esp, 8
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x9f3c2d33
je 0x1002b2b8
mov eax, esi
call fcn.1002e550
test eax, eax
je 0x1002b2b8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi], ebx
jle 0x1002b2f4
mov dword [esp + 0xc], ebx
mov edi, dword [esi + 4]
add edi, dword [esp + 0xc]
mov eax, dword [edi + 4]
test eax, eax
je 0x1002b2ea
push eax
call fcn.1002fe30
add esp, 4
mov dword [edi + 4], 0
cmp ebx, 1
je 0x1002b2ea
mov dword [edi + 0x14], 0
add dword [esp + 0xc], 0x18
inc ebx
cmp ebx, dword [esi]
jl 0x1002b2c0
push 0
mov ebx, esi
call fcn.1003dd40
mov ebx, dword [esi + 0xb0]
add esp, 4
test ebx, ebx
je 0x1002b32f
lea ebx, [ebx]
mov eax, dword [ebx + 8]
test eax, eax
je 0x1002b329
mov edi, dword [eax + 0xc]
push eax
call fcn.1009cc76
add esp, 4
mov eax, edi
test edi, edi
jne 0x1002b317
mov ebx, dword [ebx]
test ebx, ebx
jne 0x1002b310
mov edi, dword [esi + 0xcc]
test edi, edi
je 0x1002b356
lea esp, [esp]
mov eax, dword [edi + 8]
test eax, eax
je 0x1002b350
push eax
call fcn.1009cc76
add esp, 4
mov edi, dword [edi]
test edi, edi
jne 0x1002b340
mov eax, dword [esi + 0xdc]
mov edi, dword [esi + 0xcc]
mov dword [esi + 0xcc], 0
test eax, eax
je 0x1002b37c
push eax
mov eax, dword [esi + 0xd4]
call eax
add esp, 4
xor eax, eax
mov dword [esi + 0xdc], eax
mov dword [esi + 0xd8], eax
cmp edi, eax
je 0x1002b3c0
mov edi, edi
cmp byte [esi + 0xc5], 0
mov ebx, dword [edi]
je 0x1002b3ae
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1002b3ae
mov ecx, dword [esi + 0xd4]
push eax
call ecx
add esp, 4
mov edx, dword [esi + 0xd4]
push edi
call edx
add esp, 4
mov edi, ebx
test ebx, ebx
jne 0x1002b390
xor ecx, ecx
mov dword [esi + 0xc8], ecx
mov eax, dword [esi + 0xc0]
mov edi, dword [esi + 0xb0]
mov dword [esi + 0xb0], ecx
cmp eax, ecx
je 0x1002b3ea
push eax
mov eax, dword [esi + 0xb8]
call eax
add esp, 4
xor eax, eax
mov dword [esi + 0xc0], eax
mov dword [esi + 0xbc], eax
cmp edi, eax
je 0x1002b430
lea esp, [esp]
cmp byte [esi + 0xa9], 0
mov ebx, dword [edi]
je 0x1002b41e
mov eax, dword [edi + 0xc]
test eax, eax
je 0x1002b41e
mov ecx, dword [esi + 0xb8]
push eax
call ecx
add esp, 4
mov edx, dword [esi + 0xb8]
push edi
call edx
add esp, 4
mov edi, ebx
test ebx, ebx
jne 0x1002b400
push 0
push 0
mov ecx, esi
mov dword [esi + 0xac], 0
call fcn.1002dcd0
mov edi, dword [esi + 0x84]
add esp, 8
test edi, edi
je 0x1002b4b8
movzx ecx, word [edi + 0x18]
test ecx, 0x440
je 0x1002b49e
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x1002b486
test ecx, 0x400
je 0x1002b47e
mov ecx, dword [edi]
mov ebx, edi
call fcn.100391e0
push edi
call fcn.10039280
jmp 0x1002b493
mov ecx, dword [edi + 0x10]
push ecx
call eax
jmp 0x1002b493
mov eax, dword [edi + 0x10]
test eax, eax
je 0x1002b496
push eax
call fcn.1009cc76
add esp, 4
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x1c], eax
mov ebx, 1
mov edx, ebx
push edi
mov word [edi + 0x18], dx
mov byte [edi + 0x1a], 5
call fcn.1009cc76
add esp, 4
jmp 0x1002b4bd
mov ebx, 1
mov eax, dword [esi + 4]
mov dword [esi + 0x30], 0xb5357930
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x1002b4d7
push eax
call fcn.1009cc76
add esp, 4
push esi
call fcn.1009cc76
add esp, 4
cmp dword [0x100f0584], 0
jne 0x1002b50d
add dword [0x100f0580], ebx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
sub dword [0x100f0580], ebx
mov dword [0x100f01dc], eax
cmp eax, 0xffffffff
je 0x1002b55a
mov dword [0x100f0584], ebx
jmp 0x1002b512
mov eax, dword [0x100f01dc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002b55a
mov ecx, 0x100d43a4
mov esi, eax
mov edx, 0xc
sub esi, ecx
jmp 0x1002b530
mov edi, dword [esi + ecx]
cmp edi, dword [ecx]
jne 0x1002b55a
sub edx, 4
add ecx, 4
cmp edx, 4
jae 0x1002b530
push eax
call fcn.1009cc76
mov ecx, dword [0x100f01dc]
add esp, 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret