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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
fldz
mov eax, 0x55555556
imul dword [ebp + 0xc]
fst dword [esp + 0x78]
fst dword [esp + 0x24]
fst dword [esp + 0x20]
fst dword [esp + 0x1c]
fstp dword [esp + 0x18]
mov eax, dword [0x4c6060]
push ebx
push esi
mov esi, edx
shr esi, 0x1f
add esi, edx
push eax
mov dword [esp + 0x6c], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
xor ebx, ebx
mov eax, esi
mov edx, 0x10
mul edx
seto bl
push 9
neg ebx
or ebx, eax
push ebx
call fcn.004025a0
fldz
test esi, esi
fst dword [edi]
mov ecx, dword [ebp + 8]
fst dword [edi + 4]
fst dword [edi + 8]
lea edx, [edi + 0x20]
fst dword [edi + 0xc]
mov dword [esp + 0x8c], eax
fst dword [edi + 0x10]
mov dword [esp + 0x6c], edx
fst dword [edi + 0x14]
fst dword [edi + 0x18]
fst dword [edi + 0x1c]
fst dword [edx]
fst dword [edx + 4]
fst dword [edx + 8]
fst dword [edx + 0xc]
jle 0x41286d
fst dword [esp + 0x5c]
lea esi, [eax + 8]
mov eax, dword [esp + 0x68]
fst dword [esp + 0x3c]
fstp dword [esp + 0x1c]
mov ebx, esi
fldz
mov dword [esp + 0x68], eax
fadd st(0), st(0)
fstp dword [esp + 0x88]
jmp 0x41228b
mov ecx, dword [esp + 0x84]
fstp st(0)
fld dword [ecx]
mov eax, dword [ebp + 0x10]
fstp dword [esp + 0x50]
fld dword [ecx + 4]
fstp dword [esp + 0x54]
fld dword [ecx + 8]
add ecx, eax
fstp dword [esp + 0x58]
fld dword [ecx]
fstp dword [esp + 0x30]
fld dword [ecx + 4]
fstp dword [esp + 0x34]
fld dword [ecx + 8]
add ecx, eax
fstp dword [esp + 0x38]
fld dword [ecx]
fstp dword [esp + 0x10]
fld dword [ecx + 4]
fstp dword [esp + 0x14]
fld dword [ecx + 8]
add ecx, eax
cmp byte [ebp + 0x18], 0
fstp dword [esp + 0x18]
mov dword [esp + 0x84], ecx
je 0x41244a
call fcn.004680c0
fstp dword [esp + 0xa0]
call fcn.004680c0
fstp dword [esp + 0xa4]
call fcn.004680c0
fstp dword [esp + 0xa8]
fld dword [esp + 0xa0]
fld qword [0x4b3388]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0xa4]
fmul st(1)
fstp dword [esp + 0x74]
fmul dword [esp + 0xa8]
fstp dword [esp + 0x78]
fld dword [esp + 0x70]
fld dword [esp + 0x50]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x74]
fld dword [esp + 0x54]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x74]
fld dword [esp + 0x78]
fld dword [esp + 0x58]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x78]
fld dword [esp + 0x70]
fsub dword [esp + 0x30]
fstp dword [esp + 0x70]
fld dword [esp + 0x74]
fsub dword [esp + 0x34]
fstp dword [esp + 0x74]
fld dword [esp + 0x78]
fsub dword [esp + 0x38]
fstp dword [esp + 0x78]
fld dword [esp + 0x10]
fsubp st(3)
fxch st(2)
fstp dword [esp + 0xc0]
fsub dword [esp + 0x14]
fstp dword [esp + 0xc4]
fsub dword [esp + 0x18]
fstp dword [esp + 0xc8]
fld dword [esp + 0xc8]
fld st(0)
fld dword [esp + 0x74]
fld st(0)
fmulp st(2)
fld dword [esp + 0xc4]
fld st(0)
fld dword [esp + 0x78]
fld st(0)
fmulp st(2)
fxch st(4)
fsubrp st(1)
fstp dword [esp + 0xe0]
fld dword [esp + 0xc0]
fld st(0)
fmulp st(4)
fld dword [esp + 0x70]
fld st(0)
fmulp st(6)
fxch st(4)
fsubrp st(5)
fxch st(4)
fstp dword [esp + 0xe4]
fmulp st(2)
fmulp st(2)
fsubrp st(1)
fstp dword [esp + 0xe8]
fld dword [esp + 0xe0]
fld dword [esp + 0xe4]
fld dword [esp + 0xe8]
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 + 0xc]
fld dword [esp + 0xc]
call fcn.0042eb10
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
jmp 0x41253f
fld dword [esp + 0x50]
fld st(0)
fsub dword [esp + 0x30]
fstp dword [esp + 0xd0]
fld dword [esp + 0x54]
fld st(0)
fsub dword [esp + 0x34]
fstp dword [esp + 0xd4]
fld dword [esp + 0x58]
fld st(0)
fsub dword [esp + 0x38]
fstp dword [esp + 0xd8]
fld dword [esp + 0x10]
fsubp st(3)
fxch st(2)
fstp dword [esp + 0xb0]
fsub dword [esp + 0x14]
fstp dword [esp + 0xb4]
fsub dword [esp + 0x18]
fstp dword [esp + 0xb8]
fld dword [esp + 0xb8]
fld st(0)
fld dword [esp + 0xd4]
fld st(0)
fmulp st(2)
fld dword [esp + 0xb4]
fld st(0)
fld dword [esp + 0xd8]
fld st(0)
fmulp st(2)
fxch st(4)
fsubrp st(1)
fstp dword [esp + 0xf0]
fld dword [esp + 0xb0]
fld st(0)
fmulp st(4)
fld dword [esp + 0xd0]
fld st(0)
fmulp st(6)
fxch st(4)
fsubrp st(5)
fxch st(4)
fstp dword [esp + 0xf4]
fmulp st(2)
fmulp st(2)
fsubrp st(1)
fstp dword [esp + 0xf8]
fld dword [esp + 0xf0]
fld dword [esp + 0xf4]
fld dword [esp + 0xf8]
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 + 0xc]
fld dword [esp + 0xc]
call fcn.0042eb10
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fmul qword [0x4b2f68]
fstp dword [esp + 0xc]
fldz
fld dword [esp + 0xc]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x41273f
fld st(0)
lea edx, [esi - 8]
fadd dword [esp + 0x80]
mov eax, dword [esp + 0x6c]
xor ecx, ecx
fstp dword [esp + 0x80]
fld dword [esp + 0x30]
fld st(0)
fld dword [esp + 0x50]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x34]
fld dword [esp + 0x54]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x38]
fadd dword [esp + 0x58]
fstp dword [esp + 0x48]
fld dword [esp + 0x88]
fstp dword [esp + 0x4c]
fld dword [esp + 0x40]
fadd dword [esp + 0x10]
fstp dword [esp + 0x40]
fld dword [esp + 0x44]
fadd dword [esp + 0x14]
fstp dword [esp + 0x44]
fld dword [esp + 0x48]
fadd dword [esp + 0x18]
fstp dword [esp + 0x48]
fld dword [esp + 0x4c]
fadd qword [0x4bea18]
fstp dword [esp + 0x4c]
fld dword [esp + 0x40]
fld qword [0x4b3380]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x44]
fmul st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x48]
fmul st(1)
fstp dword [esp + 0x48]
fmul dword [esp + 0x4c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x40]
fstp dword [edx]
fld dword [esp + 0x44]
fstp dword [esi - 4]
fld dword [esp + 0x48]
fstp dword [esi]
fld dword [esp + 0x4c]
fstp dword [esi + 4]
fld st(3)
fmul dword [edx]
fstp dword [esp + 0x90]
fld st(3)
fmul dword [esi - 4]
fstp dword [esp + 0x94]
fld dword [esi]
fmul st(4)
fstp dword [esp + 0x98]
fld st(3)
fmul dword [esi + 4]
fstp dword [esp + 0x9c]
fld dword [esp + 0x90]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x94]
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x98]
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [esp + 0x9c]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld qword [0x4b3378]
fld dword [edx]
add ecx, 4
fmul st(1)
add eax, 4
add edx, 4
cmp ecx, 0xc
fmul dword [ebx - 8]
fld dword [esp + ecx + 0x4c]
fmul st(4)
faddp st(1)
fld dword [esp + ecx + 0x2c]
fmul st(5)
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + ecx + 0xc]
faddp st(1)
fmul st(5)
fadd dword [eax - 0x24]
fstp dword [eax - 0x24]
fld dword [edx - 4]
fmul st(1)
fmul dword [ebx - 4]
fld st(2)
fmul dword [esp + ecx + 0x4c]
faddp st(1)
fld dword [esp + 0x34]
fmul dword [esp + ecx + 0x2c]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + ecx + 0xc]
faddp st(1)
fmul st(5)
fadd dword [eax - 0x14]
fstp dword [eax - 0x14]
fld dword [edx - 4]
fmul st(1)
fmul dword [ebx]
fld dword [esp + 0x58]
fmul dword [esp + ecx + 0x4c]
faddp st(1)
fld dword [esp + 0x38]
fmul dword [esp + ecx + 0x2c]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + ecx + 0xc]
faddp st(1)
fmul st(5)
fadd dword [eax - 4]
fstp dword [eax - 4]
jl 0x41269e
fstp st(4)
fstp st(3)
fstp st(0)
fstp st(0)
jmp 0x412842
fstp st(0)
mov eax, dword [esp + 0x6c]
fld dword [esp + 0x30]
xor ecx, ecx
fld st(0)
fld dword [esp + 0x50]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esi - 8]
fld dword [esp + 0x34]
fld st(0)
fld dword [esp + 0x54]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esi - 4]
fld dword [esp + 0x38]
fld dword [esp + 0x58]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esi]
fld dword [esp + 0x88]
fstp dword [esi + 4]
fld dword [esp + 0x10]
fadd dword [esi - 8]
fstp dword [esi - 8]
fld dword [esp + 0x14]
fadd dword [esi - 4]
fstp dword [esi - 4]
fld dword [esp + 0x18]
fadd dword [esi]
fstp dword [esi]
fld dword [esi + 4]
fadd qword [0x4bea18]
fstp dword [esi + 4]
fld dword [esi - 8]
fld qword [0x4b3380]
fmul st(1), st(0)
fxch st(1)
fstp dword [esi - 8]
fld dword [esi - 4]
fmul st(1)
fstp dword [esi - 4]
fld dword [esi]
fmul st(1)
fstp dword [esi]
fmul dword [esi + 4]
fstp dword [esi + 4]
fld dword [esp + ecx + 0x50]
add ecx, 4
fmul st(4)
add eax, 4
cmp ecx, 0xc
fld st(5)
fmul dword [esp + ecx + 0x2c]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + ecx + 0xc]
faddp st(1)
fadd dword [eax - 0x24]
fstp dword [eax - 0x24]
fld st(2)
fmul dword [esp + ecx + 0x2c]
fld st(2)
fmul dword [esp + ecx + 0x4c]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + ecx + 0xc]
faddp st(1)
fadd dword [eax - 0x14]
fstp dword [eax - 0x14]
fld dword [esp + 0x38]
fmul dword [esp + ecx + 0x2c]
fld st(1)
fmul dword [esp + ecx + 0x4c]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + ecx + 0xc]
faddp st(1)
fadd dword [eax - 4]
fstp dword [eax - 4]
jl 0x4127d3
fstp st(3)
fstp st(3)
fstp st(2)
fstp st(1)
add ebx, 0x10
fstp st(0)
fldz
add esi, 0x10
sub dword [esp + 0x68], 1
jne 0x412282
fld dword [esp + 0x80]
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x4128ac
mov edx, dword [esp + 0x6c]
fstp st(0)
mov eax, dword [ebp + 0x14]
fst dword [eax + 0xc]
fst dword [eax + 8]
fst dword [eax + 4]
fst dword [eax]
fst dword [edi]
fst dword [edi + 4]
fst dword [edi + 8]
fst dword [edi + 0xc]
fst dword [edi + 0x10]
fst dword [edi + 0x14]
fst dword [edi + 0x18]
fst dword [edi + 0x1c]
fst dword [edx]
fst dword [edx + 4]
fst dword [edx + 8]
fstp dword [edx + 0xc]
fld1
fst dword [edi]
fst dword [edi + 0x14]
fstp dword [edi + 0x28]
jmp 0x41295b
fstp st(1)
mov eax, dword [esp + 0x6c]
fld st(0)
xor ecx, ecx
fld1
fdivrp st(1)
fstp dword [esp + 0x84]
fld dword [esp + 0x84]
fld st(0)
fmul dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x24]
fld st(0)
fmul dword [esp + 0x28]
fstp dword [esp + 0x28]
fmul dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x28]
fld dword [esp + 0x24]
fld dword [esp + 0x20]
fld qword [0x4b3370]
fld dword [eax - 0x20]
add ecx, 1
fdiv st(1)
add eax, 4
cmp ecx, 3
fld dword [esp + ecx*4 + 0x1c]
fmul st(3)
fmul st(6)
fsubp st(1)
fstp dword [eax - 0x24]
fld dword [eax - 0x14]
fdiv st(1)
fld dword [esp + ecx*4 + 0x1c]
fmul st(4)
fmul st(6)
fsubp st(1)
fstp dword [eax - 0x14]
fld dword [eax - 4]
fdiv st(1)
fld dword [esp + ecx*4 + 0x1c]
fmul st(5)
fmul st(6)
fsubp st(1)
fstp dword [eax - 4]
jl 0x412900
mov eax, dword [ebp + 0x14]
fstp st(0)
fstp st(3)
fxch st(2)
fstp dword [eax]
fxch st(1)
fstp dword [eax + 4]
fstp dword [eax + 8]
fld dword [esp + 0x2c]
fstp dword [eax + 0xc]
mov ecx, dword [0x4c6060]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x8c]
push edx
mov ecx, eax
call fcn.004025d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret