Function at 0x460570
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov ebx, dword [eax - 4]
mov eax, dword [ebx]
and eax, 2
je 0x460646
cmp dword [ebx + 0xc], reloc.LIBPQ.dll_Ordinal_1
jge 0x46061d
mov eax, dword [ebx + 0xc]
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov dword [ebx], 8
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edx
neg eax
adc edx, 0
neg edx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edx
neg eax
adc edx, 0
neg edx
push edx
push eax
push dword [0x696e78]
push dword [0x696e74]
call fcn.00531e80
jae 0x460602
push edx
push eax
push dword [0x696e70]
push dword [0x696e6c]
call fcn.00531e50
jae 0x46060b
mov dword [ebp - 0x14], 0x14
jmp 0x460612
mov dword [ebp - 0x14], 0xa
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x10], eax
jmp 0x460836
lea eax, [ebx + 0xc]
neg dword [eax]
cmp dword [ebx + 0xc], 0xc4653600
jg 0x460634
mov dword [ebp - 8], 0x14
jmp 0x46063b
mov dword [ebp - 8], 0xa
mov eax, dword [ebp - 8]
mov dword [ebx + 8], eax
jmp 0x460836
mov eax, dword [ebx]
and eax, 8
je 0x460720
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [0x696e38]
push dword [0x696e34]
call fcn.00531ee0
jae 0x4606bf
fild qword [ebx + 8]
fstp qword [ebp - 0x10]
mov dword [ebx], 0x10
fld qword [ebp - 0x10]
fchs
fstp qword [ebx + 8]
fld qword [ebp - 0x10]
fchs
fstp qword [ebp - 0x20]
fld qword [0x696e44]
fcomp qword [ebp - 0x20]
wait
fnstsw ax
sahf
jbe 0x4606a4
fld qword [0x696e3c]
fcomp qword [ebp - 0x20]
wait
fnstsw ax
sahf
jb 0x4606ad
mov dword [ebp - 0x14], 0x14
jmp 0x4606b4
mov dword [ebp - 0x14], 0xa
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x10], eax
jmp 0x460836
lea eax, [ebx + 8]
push dword [eax + 4]
mov esi, dword [eax]
pop edi
neg esi
adc edi, 0
neg edi
mov dword [eax], esi
mov dword [eax + 4], edi
push dword [ebx + 0xc]
mov eax, dword [ebx + 8]
pop edx
push edx
push eax
push dword [0x696e78]
push dword [0x696e74]
call fcn.00531e80
jae 0x460705
push edx
push eax
push dword [0x696e70]
push dword [0x696e6c]
call fcn.00531e50
jae 0x46070e
mov dword [ebp - 8], 0x14
jmp 0x460715
mov dword [ebp - 8], 0xa
mov eax, dword [ebp - 8]
mov dword [ebx + 0x10], eax
jmp 0x460836
mov eax, dword [ebx]
and eax, 0x10
je 0x46076f
lea eax, [ebx + 8]
fld qword [eax]
fchs
fstp qword [eax]
fld qword [ebx + 8]
fstp qword [ebp - 0x10]
fld qword [0x696e44]
fcomp qword [ebp - 0x10]
wait
fnstsw ax
sahf
jbe 0x460754
fld qword [0x696e3c]
fcomp qword [ebp - 0x10]
wait
fnstsw ax
sahf
jb 0x46075d
mov dword [ebp - 8], 0x14
jmp 0x460764
mov dword [ebp - 8], 0xa
mov eax, dword [ebp - 8]
mov dword [ebx + 0x10], eax
jmp 0x460836
mov eax, dword [ebx]
and eax, 0x400
je 0x4607a0
mov eax, dword [ebx + 8]
cmp eax, 1
jne 0x4607a0
mov eax, dword [ebx + 0x10]
movsx eax, byte [eax]
movzx eax, al
neg eax
mov dword [ebx + 0xc], eax
mov dword [ebx], 2
mov dword [ebx + 8], 0xa
jmp 0x460836
push ebx
push 1
push 0x696e4c
push 0
push 0x438
push 1
call fcn.00492ab0
add esp, 0x18
mov dword [ebp - 8], eax
test eax, eax
je 0x460836
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x4607e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x4607f7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov eax, dword [eax - 4]
mov dword [eax], 0
mov eax, dword [ebp - 4]
lea eax, [eax + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [eax], edx
mov eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp eax, edx
jae 0x460822
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.004a4430
pop ecx
mov eax, dword [ebp - 8]
push eax
call fcn.0049f7d0
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret