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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0x4eb6b8]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, ecx
mov dword [esp + 0x14], eax
mov dword [eax], esi
mov eax, dword [ebx + 0x30]
push edi
mov edi, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
cmp eax, 0xa029a697
jne 0x42c48d
mov dword [ebx + 0x30], 0xf03b7906
cmp dword [ebx], esi
jle 0x42c43a
mov dword [esp + 0xc], esi
jmp 0x42c410
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0xc]
mov edi, dword [edx + ecx + 4]
test edi, edi
je 0x42c42c
call fcn.004361f0
test eax, eax
jne 0x42c4b9
add dword [esp + 0xc], 0x18
inc esi
cmp esi, dword [ebx]
jl 0x42c410
mov edi, dword [esp + 0x14]
push 0xb4
lea eax, [esp + 0x24]
push 0
push eax
call fcn.004a4260
mov edx, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], ebx
call fcn.004451e0
add esp, 0xc
cmp dword [0x4f0384], 0
je 0x42c52b
cmp dword [0x4f0390], 0
jle 0x42c52b
mov eax, 7
jmp 0x42c536
cmp eax, 0xf03b7906
jne 0x42c49f
or dword [ebx + 8], 4
mov dword [ebx + 0x30], 0xb5357930
mov eax, 0x15
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 4]
lea eax, [esi + esi*2]
mov edx, dword [ecx + eax*8]
push edx
push str.database_schema_is_locked:__s
push 6
mov ecx, ebx
call fcn.0042d8f0
mov eax, dword [ebx + 0x30]
add esp, 0xc
cmp eax, 0xf03b7906
jne 0x42c4ff
mov dword [ebx + 0x30], 0xa029a697
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret
cmp eax, 0xa029a697
jne 0x42c511
or dword [ebx + 8], 4
mov dword [ebx + 0x30], 0xb5357930
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x24]
cmp eax, 0x65
jne 0x42c53a
xor eax, eax
mov dword [esp + 0x24], eax
cmp byte [esp + 0x32], 0
je 0x42c55c
push ebx
call fcn.0042c1b0
add esp, 4
test eax, eax
jne 0x42c558
mov dword [esp + 0x24], 0x11
jmp 0x42c561
mov eax, dword [esp + 0x24]
cmp eax, 0x11
jne 0x42c56f
push 0
call fcn.0043d980
mov eax, dword [esp + 0x28]
add esp, 4
test edi, edi
je 0x42c57c
mov ecx, dword [esp + 0xc0]
mov dword [edi], ecx
mov edi, eax
test eax, eax
jne 0x42c741
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x42c745
mov cl, byte [esp + 0xa0]
test cl, cl
je 0x42c745
push eax
cmp cl, 2
jne 0x42c642
lea eax, [edi + 3]
call fcn.0043aa80
add esp, 4
cmp dword [0x4f0384], edi
je 0x42c5c6
cmp dword [0x4f0390], edi
jg 0x42c5e1
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x34]
push 0
push 1
push 0xffffffffffffffff
push str.order
push eax
call fcn.00439390
add esp, 0x14
cmp dword [0x4f0384], 0
je 0x42c5f3
cmp dword [0x4f0390], 0
jg 0x42c611
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x34]
push 0
push 1
push 0xffffffffffffffff
add edx, 0x40
push str.from
push edx
call fcn.00439390
add esp, 0x14
cmp dword [0x4f0384], 0
je 0x42c627
cmp dword [0x4f0390], 0
jg 0x42c741
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x34]
push 0
push 1
push 0xffffffffffffffff
push str.detail
sub ecx, 0xffffff80
push ecx
jmp 0x42c739
mov eax, 5
call fcn.0043aa80
add esp, 4
cmp dword [0x4f0384], 0
je 0x42c661
cmp dword [0x4f0390], 0
jg 0x42c67c
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x34]
push 0
push 1
push 0xffffffffffffffff
push str.addr
push eax
call fcn.00439390
add esp, 0x14
cmp dword [0x4f0384], 0
je 0x42c68e
cmp dword [0x4f0390], 0
jg 0x42c6ac
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x34]
push 0
push 1
push 0xffffffffffffffff
add edx, 0x40
push str.opcode
push edx
call fcn.00439390
add esp, 0x14
cmp dword [0x4f0384], 0
je 0x42c6be
cmp dword [0x4f0390], 0
jg 0x42c6dc
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x34]
push 0
push 1
push 0xffffffffffffffff
sub ecx, 0xffffff80
push 0x4d615c
push ecx
call fcn.00439390
add esp, 0x14
cmp dword [0x4f0384], 0
je 0x42c6ee
cmp dword [0x4f0390], 0
jg 0x42c70e
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x34]
push 0
push 1
push 0xffffffffffffffff
add eax, 0xc0
push 0x4d6160
push eax
call fcn.00439390
add esp, 0x14
cmp dword [0x4f0384], 0
je 0x42c720
cmp dword [0x4f0390], 0
jg 0x42c741
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x34]
push 0
push 1
push 0xffffffffffffffff
push 0x4d6164
add edx, 0x100
push edx
call fcn.00439390
add esp, 0x14
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x30]
cmp ecx, 0xf03b7906
jne 0x42c763
mov dword [ebx + 0x30], 0xa029a697
test edi, edi
jne 0x42c77b
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
jmp 0x42c7aa
cmp ecx, 0xa029a697
jne 0x42c776
or dword [ebx + 8], 4
mov dword [ebx + 0x30], 0xb5357930
mov edi, 0x15
test eax, eax
je 0x42c7aa
mov ecx, dword [eax + 0x50]
mov esi, eax
cmp ecx, 0xbdf20da3
je 0x42c79e
cmp ecx, 0x519c2973
je 0x42c79e
cmp ecx, 0x26bceaa5
je 0x42c7a3
jmp 0x42c7aa
call fcn.0043b290
mov eax, esi
call fcn.0043b3c0
mov eax, dword [esp + 0x10]
mov ecx, ebx
test eax, eax
je 0x42c7d6
push eax
push 0x4d6168
push edi
call fcn.0042d8f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x42c7e1
push eax
call fcn.0049cbfd
add esp, 4
jmp 0x42c7e1
push 0
push edi
call fcn.0042d8f0
add esp, 8
cmp dword [0x4f0384], 0
mov esi, 1
je 0x42c819
cmp dword [0x4f0390], 0
jle 0x42c819
sub dword [0x4f0390], esi
push 0
push 7
mov ecx, ebx
mov dword [0x4f0384], 0
call fcn.0042d8f0
add esp, 8
lea edi, [esi + 6]
cmp dword [0x4f0394], 0
jne 0x42c846
add dword [0x4f0390], esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
sub dword [0x4f0390], esi
mov dword [0x4f0030], eax
cmp eax, 0xffffffff
je 0x42c88e
mov dword [0x4f0394], esi
jmp 0x42c84b
mov eax, dword [0x4f0030]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42c88e
mov ecx, 0x4d43cc
mov esi, eax
mov edx, 0xc
sub esi, ecx
mov ebx, dword [esi + ecx]
cmp ebx, dword [ecx]
jne 0x42c88e
sub edx, 4
add ecx, 4
cmp edx, 4
jae 0x42c864
push eax
call fcn.0049cbfd
mov edx, dword [0x4f0030]
add esp, 4
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0xdc]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret