Function at 0x4247c0
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 0x42489d
mov dword [ebx + 0x30], 0xf03b7906
cmp dword [ebx], esi
jle 0x42484a
mov dword [esp + 0xc], esi
jmp 0x424820
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0xc]
mov edi, dword [edx + ecx + 4]
test edi, edi
je 0x42483c
call fcn.0042e690
test eax, eax
jne 0x4248c9
add dword [esp + 0xc], 0x18
inc esi
cmp esi, dword [ebx]
jl 0x424820
mov edi, dword [esp + 0x14]
push 0xb4
lea eax, [esp + 0x24]
push 0
push eax
call fcn.004a2b10
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.0043d670
add esp, 0xc
cmp dword [0x4f019c], 0
je 0x42493b
cmp dword [0x4f01a8], 0
jle 0x42493b
mov eax, 7
jmp 0x424946
cmp eax, 0xf03b7906
jne 0x4248af
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.0049b315
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.00425d00
mov eax, dword [ebx + 0x30]
add esp, 0xc
cmp eax, 0xf03b7906
jne 0x42490f
mov dword [ebx + 0x30], 0xa029a697
mov eax, 6
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.0049b315
mov esp, ebp
pop ebp
ret
cmp eax, 0xa029a697
jne 0x424921
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.0049b315
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x24]
cmp eax, 0x65
jne 0x42494a
xor eax, eax
mov dword [esp + 0x24], eax
cmp byte [esp + 0x32], 0
je 0x42496c
push ebx
call fcn.004245c0
add esp, 4
test eax, eax
jne 0x424968
mov dword [esp + 0x24], 0x11
jmp 0x424971
mov eax, dword [esp + 0x24]
cmp eax, 0x11
jne 0x42497f
push 0
call fcn.00435e10
mov eax, dword [esp + 0x28]
add esp, 4
test edi, edi
je 0x42498c
mov ecx, dword [esp + 0xc0]
mov dword [edi], ecx
mov edi, eax
test eax, eax
jne 0x424b51
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x424b55
mov cl, byte [esp + 0xa0]
test cl, cl
je 0x424b55
push eax
cmp cl, 2
jne 0x424a52
lea eax, [edi + 3]
call fcn.00432f20
add esp, 4
cmp dword [0x4f019c], edi
je 0x4249d6
cmp dword [0x4f01a8], edi
jg 0x4249f1
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x34]
push 0
push 1
push 0xffffffffffffffff
push str.order
push eax
call fcn.00431830
add esp, 0x14
cmp dword [0x4f019c], 0
je 0x424a03
cmp dword [0x4f01a8], 0
jg 0x424a21
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.00431830
add esp, 0x14
cmp dword [0x4f019c], 0
je 0x424a37
cmp dword [0x4f01a8], 0
jg 0x424b51
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 0x424b49
mov eax, 5
call fcn.00432f20
add esp, 4
cmp dword [0x4f019c], 0
je 0x424a71
cmp dword [0x4f01a8], 0
jg 0x424a8c
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x34]
push 0
push 1
push 0xffffffffffffffff
push str.addr
push eax
call fcn.00431830
add esp, 0x14
cmp dword [0x4f019c], 0
je 0x424a9e
cmp dword [0x4f01a8], 0
jg 0x424abc
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.00431830
add esp, 0x14
cmp dword [0x4f019c], 0
je 0x424ace
cmp dword [0x4f01a8], 0
jg 0x424aec
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x34]
push 0
push 1
push 0xffffffffffffffff
sub ecx, 0xffffff80
push 0x4d4f54
push ecx
call fcn.00431830
add esp, 0x14
cmp dword [0x4f019c], 0
je 0x424afe
cmp dword [0x4f01a8], 0
jg 0x424b1e
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x34]
push 0
push 1
push 0xffffffffffffffff
add eax, 0xc0
push 0x4d4f58
push eax
call fcn.00431830
add esp, 0x14
cmp dword [0x4f019c], 0
je 0x424b30
cmp dword [0x4f01a8], 0
jg 0x424b51
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x34]
push 0
push 1
push 0xffffffffffffffff
push 0x4d4f5c
add edx, 0x100
push edx
call fcn.00431830
add esp, 0x14
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 0x30]
cmp ecx, 0xf03b7906
jne 0x424b73
mov dword [ebx + 0x30], 0xa029a697
test edi, edi
jne 0x424b8b
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
jmp 0x424bba
cmp ecx, 0xa029a697
jne 0x424b86
or dword [ebx + 8], 4
mov dword [ebx + 0x30], 0xb5357930
mov edi, 0x15
test eax, eax
je 0x424bba
mov ecx, dword [eax + 0x50]
mov esi, eax
cmp ecx, 0xbdf20da3
je 0x424bae
cmp ecx, 0x519c2973
je 0x424bae
cmp ecx, 0x26bceaa5
je 0x424bb3
jmp 0x424bba
call fcn.00433730
mov eax, esi
call fcn.00433860
mov eax, dword [esp + 0x10]
mov ecx, ebx
test eax, eax
je 0x424be6
push eax
push 0x4d4f60
push edi
call fcn.00425d00
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x424bf1
push eax
call fcn.0049b3dd
add esp, 4
jmp 0x424bf1
push 0
push edi
call fcn.00425d00
add esp, 8
cmp dword [0x4f019c], 0
mov esi, 1
je 0x424c29
cmp dword [0x4f01a8], 0
jle 0x424c29
sub dword [0x4f01a8], esi
push 0
push 7
mov ecx, ebx
mov dword [0x4f019c], 0
call fcn.00425d00
add esp, 8
lea edi, [esi + 6]
cmp dword [0x4f01ac], 0
jne 0x424c56
add dword [0x4f01a8], esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
sub dword [0x4f01a8], esi
mov dword [0x4efe48], eax
cmp eax, 0xffffffff
je 0x424c9e
mov dword [0x4f01ac], esi
jmp 0x424c5b
mov eax, dword [0x4efe48]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x424c9e
mov ecx, 0x4d31c4
mov esi, eax
mov edx, 0xc
sub esi, ecx
mov ebx, dword [esi + ecx]
cmp ebx, dword [ecx]
jne 0x424c9e
sub edx, 4
add ecx, 4
cmp edx, 4
jae 0x424c74
push eax
call fcn.0049b3dd
mov edx, dword [0x4efe48]
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.0049b315
mov esp, ebp
pop ebp
ret