Function at 0x423280
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 0x42359a
mov eax, dword [esi + 0x30]
cmp eax, 0x9f3c2d33
je 0x4232b8
cmp eax, 0xa029a697
je 0x4232b8
cmp eax, 0xf03b7906
je 0x4232b8
lea eax, [ebx + 0x15]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x48], ebx
je 0x4232da
push str.Unable_to_close_due_to_unfinalised_statements
push 5
mov ecx, esi
call fcn.00425d00
add esp, 8
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x9f3c2d33
je 0x4232f8
mov eax, esi
call fcn.00426580
test eax, eax
je 0x4232f8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi], ebx
jle 0x423334
mov dword [esp + 0xc], ebx
mov edi, dword [esi + 4]
add edi, dword [esp + 0xc]
mov eax, dword [edi + 4]
test eax, eax
je 0x42332a
push eax
call fcn.00427e60
add esp, 4
mov dword [edi + 4], 0
cmp ebx, 1
je 0x42332a
mov dword [edi + 0x14], 0
add dword [esp + 0xc], 0x18
inc ebx
cmp ebx, dword [esi]
jl 0x423300
push 0
mov ebx, esi
call fcn.00435e10
mov ebx, dword [esi + 0xb0]
add esp, 4
test ebx, ebx
je 0x42336f
lea ebx, [ebx]
mov eax, dword [ebx + 8]
test eax, eax
je 0x423369
mov edi, dword [eax + 0xc]
push eax
call fcn.0049b3dd
add esp, 4
mov eax, edi
test edi, edi
jne 0x423357
mov ebx, dword [ebx]
test ebx, ebx
jne 0x423350
mov edi, dword [esi + 0xcc]
test edi, edi
je 0x423396
lea esp, [esp]
mov eax, dword [edi + 8]
test eax, eax
je 0x423390
push eax
call fcn.0049b3dd
add esp, 4
mov edi, dword [edi]
test edi, edi
jne 0x423380
mov eax, dword [esi + 0xdc]
mov edi, dword [esi + 0xcc]
mov dword [esi + 0xcc], 0
test eax, eax
je 0x4233bc
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 0x423400
mov edi, edi
cmp byte [esi + 0xc5], 0
mov ebx, dword [edi]
je 0x4233ee
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4233ee
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 0x4233d0
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 0x42342a
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 0x423470
lea esp, [esp]
cmp byte [esi + 0xa9], 0
mov ebx, dword [edi]
je 0x42345e
mov eax, dword [edi + 0xc]
test eax, eax
je 0x42345e
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 0x423440
push 0
push 0
mov ecx, esi
mov dword [esi + 0xac], 0
call fcn.00425d00
mov edi, dword [esi + 0x84]
add esp, 8
test edi, edi
je 0x4234f8
movzx ecx, word [edi + 0x18]
test ecx, 0x440
je 0x4234de
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4234c6
test ecx, 0x400
je 0x4234be
mov ecx, dword [edi]
mov ebx, edi
call fcn.004312a0
push edi
call fcn.00431340
jmp 0x4234d3
mov ecx, dword [edi + 0x10]
push ecx
call eax
jmp 0x4234d3
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4234d6
push eax
call fcn.0049b3dd
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.0049b3dd
add esp, 4
jmp 0x4234fd
mov ebx, 1
mov eax, dword [esi + 4]
mov dword [esi + 0x30], 0xb5357930
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x423517
push eax
call fcn.0049b3dd
add esp, 4
push esi
call fcn.0049b3dd
add esp, 4
cmp dword [0x4f01ac], 0
jne 0x42354d
add dword [0x4f01a8], ebx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
sub dword [0x4f01a8], ebx
mov dword [0x4efe48], eax
cmp eax, 0xffffffff
je 0x42359a
mov dword [0x4f01ac], ebx
jmp 0x423552
mov eax, dword [0x4efe48]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42359a
mov ecx, 0x4d31c4
mov esi, eax
mov edx, 0xc
sub esi, ecx
jmp 0x423570
mov edi, dword [esi + ecx]
cmp edi, dword [ecx]
jne 0x42359a
sub edx, 4
add ecx, 4
cmp edx, 4
jae 0x423570
push eax
call fcn.0049b3dd
mov ecx, dword [0x4efe48]
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