Function at 0x422a00
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
fldz
sub esp, 0x104
fcom dword [ebp + 0x14]
push ebx
push esi
push edi
fnstsw ax
test ah, 1
jne 0x422a29
fstp st(0)
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fcom dword [ebp + 0xc]
fnstsw ax
test ah, 1
je 0x422a1b
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
fst dword [esi + 0x20]
lea ebx, [esi + 0x20]
fst dword [ebx + 4]
add esi, 0x10
fst dword [ebx + 8]
xor ecx, ecx
fst dword [ebx + 0xc]
mov dword [esp + 0x20], ecx
fst dword [ebx + 0x10]
mov dword [esp + 0x24], ecx
fst dword [ebx + 0x14]
mov dword [esp + 0x28], bind
fst dword [ebx + 0x18]
fst dword [ebx + 0x1c]
fst dword [ebx + 0x20]
fst dword [ebx + 0x24]
fst dword [ebx + 0x28]
fst dword [ebx + 0x2c]
fst dword [esi + 0xc]
fst dword [esi + 8]
fst dword [esi + 4]
fst dword [esi]
mov eax, dword [edi + 0x10]
cmp eax, ecx
mov dword [esp + 0x14], eax
jle 0x422ab1
xor edx, edx
fstp st(0)
cmp eax, ecx
setl dl
push 4
sub edx, 1
and eax, edx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004026b0
fldz
mov eax, dword [esp + 0x20]
add esp, 0xc
xor ecx, ecx
cmp dword [edi + 0x10], ecx
fst dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
jle 0x422c97
fstp st(0)
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0xc]
add ecx, dword [esp + 0x1c]
mov edx, dword [edi]
mov eax, dword [ecx]
shl eax, 4
fld dword [eax + edx]
add eax, edx
fstp dword [esp + 0x30]
fld dword [eax + 4]
fstp dword [esp + 0x34]
fld dword [eax + 8]
mov eax, dword [ecx + 4]
fstp dword [esp + 0x38]
shl eax, 4
fld dword [eax + edx]
add eax, edx
fstp dword [esp + 0xc0]
fld dword [eax + 4]
fstp dword [esp + 0xc4]
fld dword [eax + 8]
mov eax, dword [ecx + 8]
fstp dword [esp + 0xc8]
shl eax, 4
fld dword [eax + edx]
add eax, edx
fstp dword [esp + 0xd0]
fld dword [eax + 4]
fstp dword [esp + 0xd4]
fld dword [eax + 8]
fstp dword [esp + 0xd8]
fld dword [esp + 0xd0]
fld dword [esp + 0xc0]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x50]
fld dword [esp + 0xd4]
fld dword [esp + 0xc4]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0xd8]
fld dword [esp + 0xc8]
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x58]
fld dword [esp + 0x30]
fsubrp st(3)
fxch st(2)
fstp dword [esp + 0x40]
fsubr dword [esp + 0x34]
fstp dword [esp + 0x44]
fsubr dword [esp + 0x38]
fstp dword [esp + 0x48]
fld dword [esp + 0x48]
fld st(0)
fld dword [esp + 0x54]
fld st(0)
fmulp st(2)
fld dword [esp + 0x44]
fld st(0)
fld dword [esp + 0x58]
fld st(0)
fmulp st(2)
fxch st(4)
fsubrp st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x40]
fld st(0)
fmulp st(4)
fld dword [esp + 0x50]
fld st(0)
fmulp st(6)
fxch st(4)
fsubrp st(5)
fxch st(4)
fstp dword [esp + 0x64]
fmulp st(2)
fmulp st(2)
fsubrp st(1)
fstp dword [esp + 0x68]
fld dword [esp + 0x60]
fld dword [esp + 0x64]
fld dword [esp + 0x68]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
call fcn.0042eb10
fstp dword [esp + 0x14]
cmp byte [ebp + 0x10], 0
fld dword [esp + 0x14]
fstp dword [esp + 0x14]
je 0x422c5a
fld dword [0x4b3338]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
mov eax, dword [esp + 0x18]
jp 0x422c47
fstp st(0)
fld dword [0x4b34e0]
jmp 0x422c60
fmul qword [0x4b2f68]
mov edx, dword [esp + 0x20]
add eax, eax
add eax, eax
fstp dword [eax + edx]
jmp 0x422c6b
mov eax, dword [esp + 0x18]
fld1
mov ecx, dword [esp + 0x20]
add eax, eax
add eax, eax
fstp dword [eax + ecx]
mov edx, dword [esp + 0x20]
fld dword [eax + edx]
mov eax, dword [esp + 0x18]
fadd dword [esp + 0x2c]
add dword [esp + 0x1c], 0xc
add eax, 1
cmp eax, dword [edi + 0x10]
fstp dword [esp + 0x2c]
mov dword [esp + 0x18], eax
jl 0x422acc
fldz
xor ecx, ecx
cmp dword [edi + 0x10], ecx
mov dword [esp + 0x18], ecx
jle 0x422f31
mov dword [esp + 0x1c], ecx
jmp 0x422cb2
fldz
mov ecx, dword [edi + 0xc]
add ecx, dword [esp + 0x1c]
mov edx, dword [edi]
mov eax, dword [ecx]
shl eax, 4
fld dword [eax + edx]
add eax, edx
fstp dword [esp + 0x40]
fld dword [eax + 4]
fstp dword [esp + 0x44]
fld dword [eax + 8]
fstp dword [esp + 0x48]
fld dword [eax + 0xc]
mov eax, dword [ecx + 4]
fstp dword [esp + 0x4c]
shl eax, 4
fld dword [eax + edx]
add eax, edx
fstp dword [esp + 0x50]
fld dword [eax + 4]
fstp dword [esp + 0x54]
fld dword [eax + 8]
fstp dword [esp + 0x58]
fld dword [eax + 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x18]
fstp dword [esp + 0x5c]
shl eax, 4
fld dword [eax + edx]
add eax, edx
fstp dword [esp + 0x60]
lea edx, [esp + 0x70]
fld dword [eax + 4]
push edx
fstp dword [esp + 0x68]
sub esp, 8
fld dword [eax + 8]
lea edx, [esp + 0x4c]
fstp dword [esp + 0x74]
fld dword [eax + 0xc]
mov eax, dword [esp + 0x2c]
fstp dword [esp + 0x78]
fld dword [eax + ecx*4]
lea eax, [esp + 0x6c]
fmul dword [ebp + 0x14]
lea ecx, [esp + 0x5c]
fdiv dword [esp + 0x38]
fstp dword [esp + 0x20]
fst dword [esp + 0x7c]
fst dword [esp + 0x80]
fst dword [esp + 0x98]
fst dword [esp + 0x94]
fst dword [esp + 0x90]
fst dword [esp + 0x8c]
fst dword [esp + 0x9c]
fst dword [esp + 0xa0]
fst dword [esp + 0xa4]
fst dword [esp + 0xa8]
fst dword [esp + 0xac]
fst dword [esp + 0xb0]
fst dword [esp + 0xb4]
fst dword [esp + 0xb8]
fst dword [esp + 0xbc]
fst dword [esp + 0xc0]
fst dword [esp + 0xc4]
fstp dword [esp + 0xc8]
fld dword [ebp + 0xc]
fstp dword [esp + 4]
fld dword [esp + 0x20]
fstp dword [esp]
push eax
push ecx
push edx
call fcn.00420ef0
fld dword [esp + 0xa8]
fstp dword [esp + 0xf8]
add esp, 0x18
fld dword [esp + 0x94]
fstp dword [esp + 0xe4]
fld dword [esp + 0x98]
fstp dword [esp + 0xe8]
fld dword [esp + 0x9c]
lea eax, [esp + 0xe0]
fstp dword [esp + 0xec]
push eax
fld dword [esp + 0xa4]
push ecx
fstp dword [esp + 0xf8]
lea ecx, [esp + 0x38]
fld dword [esp + 0xac]
fstp dword [esp + 0xfc]
fld dword [esp + 0xb0]
fstp dword [esp + 0x100]
fld dword [esp + 0xb4]
fstp dword [esp + 0x104]
fld dword [esp + 0xb8]
fstp dword [esp + 0x108]
fld dword [esp + 0xbc]
fstp dword [esp + 0x10c]
fld dword [esp + 0xc0]
fstp dword [esp + 0x110]
fld dword [esp + 0xc4]
fstp dword [esp + 0x114]
fld dword [esp + 0x88]
fld st(0)
fld dword [esp + 0x1c]
fld st(0)
fmulp st(2)
fld dword [esi]
faddp st(2)
fxch st(1)
fstp dword [esi]
fld dword [esp + 0x8c]
fld st(0)
fmul st(2)
fadd dword [esi + 4]
fstp dword [esi + 4]
fld dword [esp + 0x90]
fld st(0)
fmul st(3)
fadd dword [esi + 8]
fstp dword [esi + 8]
fld dword [esp + 0x94]
fld st(0)
fmul st(4)
fadd dword [esi + 0xc]
fstp dword [esi + 0xc]
fxch st(4)
fstp dword [esp + 0x38]
fxch st(1)
fstp dword [esp + 0x3c]
fstp dword [esp + 0x40]
fxch st(1)
fstp dword [esp + 0x44]
fstp dword [esp]
push ecx
call fcn.0041e980
add esp, 0xc
lea edx, [esp + 0xe0]
push edx
mov ecx, ebx
call fcn.00407630
mov eax, dword [esp + 0x18]
add dword [esp + 0x1c], 0xc
add eax, 1
cmp eax, dword [edi + 0x10]
mov dword [esp + 0x18], eax
jl 0x422cb0
jmp 0x422f33
fstp st(0)
fld dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
fst dword [eax + 4]
push ebx
fld st(0)
push ecx
fld1
fdivrp st(1)
fstp dword [esp + 0x1c]
fld dword [esi]
fld dword [esp + 0x1c]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esi]
fld dword [esi + 4]
fmul st(1)
fstp dword [esi + 4]
fld dword [esi + 8]
fmul st(1)
fstp dword [esi + 8]
fmul dword [esi + 0xc]
fstp dword [esi + 0xc]
fstp dword [esp]
push esi
call fcn.0041e8d0
mov eax, dword [esp + 0x34]
add esp, 0xc
test eax, eax
js 0x422faa
mov ecx, dword [0x4c6060]
and eax, 0x3fffffff
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x20]
push 0x17
lea edx, [esi*4]
push edx
push ecx
mov ecx, eax
call fcn.004023e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret