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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
sub esp, 0x74
push ebx
push esi
mov byte [eax], 0
cmp byte [ecx], 0
push edi
je 0x419711
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 4]
mov edi, dword [esi]
xor edx, edx
xor eax, eax
cmp dword [esi + 8], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x3c], edi
jle 0x418f50
jmp 0x418f40
mov ecx, dword [esi + 4]
mov word [ecx + eax*8 + 6], dx
add eax, 1
cmp eax, dword [esi + 8]
jl 0x418f40
fldz
xor eax, eax
cmp dword [esi + 8], edx
mov dword [esp + 0x38], eax
jle 0x4192d1
mov ecx, dword [esi + 4]
cmp word [ecx + eax*8 + 6], 1
lea eax, [ecx + eax*8]
je 0x4192bd
movzx ecx, word [eax + 2]
lea ecx, [ebx + ecx*8]
mov esi, 1
mov word [eax + 6], si
mov word [ecx + 6], si
movzx eax, word [eax]
movzx ecx, word [ecx]
mov dword [esp + 0x1c], ecx
mov esi, eax
shl ecx, 4
add ecx, edi
shl esi, 4
add esi, edi
fld dword [ecx]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
fsub dword [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
fstp dword [esp + 0x50]
mov ebx, bind
fld dword [ecx + 4]
fsub dword [esi + 4]
fstp dword [esp + 0x54]
fld dword [ecx + 8]
fsub dword [esi + 8]
mov dword [esp + 0x44], edx
xor edx, edx
cmp dword [esp + 0x1c], eax
fstp dword [esp + 0x58]
mov dword [esp + 0x4c], ebx
fld dword [0x4b333c]
mov dword [esp + 0x48], edx
fstp dword [esp + 0x30]
fld dword [esp + 0x50]
fld st(0)
fld dword [esp + 0x54]
fld dword [esp + 0x58]
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 + 0x34]
je 0x41924b
fld st(1)
fcomp dword [esi + 0xc]
fnstsw ax
test ah, 0x44
jp 0x41924b
fld st(1)
fcomp dword [ecx + 0xc]
fnstsw ax
test ah, 0x44
jp 0x41924b
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
add ecx, 1
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x41924b
shl eax, 4
lea ecx, [eax + edi + 4]
mov dword [esp + 0x18], ecx
jmp 0x41905c
fld dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x2c], ecx
je 0x41922d
cmp dword [esp + 0x1c], ecx
je 0x41922d
mov eax, dword [esp + 0x18]
fld st(1)
fcomp dword [eax + 8]
fnstsw ax
test ah, 0x44
jp 0x41922d
mov eax, dword [esp + 0x18]
fld dword [eax - 4]
fsub dword [esi]
fstp dword [esp + 0x60]
fld dword [eax]
fsub dword [esi + 4]
fstp dword [esp + 0x64]
fld dword [eax + 4]
mov eax, dword [ebp + 0x14]
fsub dword [esi + 8]
fstp dword [esp + 0x68]
fld dword [esp + 0x60]
fld st(0)
fmul st(2)
fld dword [esp + 0x64]
fld st(0)
fmul dword [esp + 0x54]
faddp st(2)
fld dword [esp + 0x68]
fld st(0)
fmul dword [esp + 0x58]
faddp st(3)
fxch st(2)
fstp dword [esp + 0x20]
fld st(1)
fmul dword [esp + 0x54]
fld st(1)
fmul dword [esp + 0x58]
fsubp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x58]
fmul st(3)
fld st(4)
fmulp st(3)
fsubrp st(2)
fxch st(1)
fstp dword [esp + 0x74]
fmulp st(2)
fmul dword [esp + 0x54]
fsubp st(1)
fstp dword [esp + 0x78]
fld dword [esp + 0x70]
fld dword [esp + 0x74]
fld dword [esp + 0x78]
fld st(2)
fmulp st(3)
fld st(1)
fmulp st(2)
fxch st(2)
faddp st(1)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fld dword [eax + 8]
fcompp
fnstsw ax
test ah, 0x41
jne 0x41922f
fld dword [esp + 0x20]
and ebx, 0x3fffffff
fld dword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x41919c
cmp edx, ebx
jne 0x419175
lea ecx, [esp + 0x44]
fstp st(0)
push 4
fstp st(0)
push ecx
call fcn.00402730
fld dword [esp + 0x28]
fldz
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
fxch st(1)
add esp, 8
mov eax, dword [esp + 0x24]
fstp dword [esp + 0x30]
mov ebx, dword [esp + 0x44]
mov dword [ebx + edx*4], eax
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
add edx, 1
mov dword [esp + 0x48], edx
mov dword [esp + 0x24], ecx
jmp 0x41922f
fld dword [esp + 0x34]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4191f4
cmp edx, ebx
jne 0x4191d0
lea ecx, [esp + 0x44]
fstp st(0)
push 4
fstp st(0)
push ecx
call fcn.00402730
fld dword [esp + 0x28]
fldz
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
fxch st(1)
add esp, 8
mov eax, dword [esp + 0x28]
fstp dword [esp + 0x34]
mov ebx, dword [esp + 0x44]
mov dword [ebx + edx*4], eax
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
add edx, 1
mov dword [esp + 0x48], edx
mov dword [esp + 0x28], ecx
jmp 0x41922f
cmp edx, ebx
fstp st(0)
jne 0x419215
lea ecx, [esp + 0x44]
fstp st(0)
push 4
push ecx
call fcn.00402730
fldz
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x18]
add esp, 8
mov eax, dword [esp + 0x44]
mov dword [eax + edx*4], ecx
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
add edx, 1
mov dword [esp + 0x48], edx
jmp 0x41922f
fstp st(0)
mov eax, dword [ebp + 0x10]
add dword [esp + 0x18], 0x10
add ecx, 1
add eax, 1
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x419058
jmp 0x41924d
fstp st(0)
xor ecx, ecx
test edx, edx
jle 0x419284
mov eax, dword [esp + 0x44]
mov eax, dword [eax + ecx*4]
cmp eax, dword [esp + 0x24]
je 0x419279
cmp eax, dword [esp + 0x28]
je 0x419279
fld1
mov edx, dword [ebp + 0x18]
shl eax, 4
fstp dword [eax + edi + 0xc]
mov byte [edx], 1
mov edx, dword [esp + 0x48]
add ecx, 1
cmp ecx, edx
jl 0x419253
mov ebx, dword [esp + 0x4c]
test ebx, ebx
js 0x4192b4
mov eax, dword [0x4c6060]
fstp st(0)
push eax
and ebx, 0x3fffffff
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x44]
push 0x17
lea ecx, [ebx*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
fldz
mov ebx, dword [esp + 0x14]
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, dword [esp + 0x38]
add eax, 1
cmp eax, dword [esi + 8]
mov dword [esp + 0x38], eax
jl 0x418f61
xor eax, eax
cmp dword [esi + 8], edx
jle 0x4192e8
mov ecx, dword [esi + 4]
mov word [ecx + eax*8 + 6], dx
add eax, 1
cmp eax, dword [esi + 8]
jl 0x4192d8
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edx, ecx
sub edx, eax
cmp edx, 2
jle 0x41970f
cmp dword [esi + 8], 2
jle 0x41970f
add ecx, 1
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
jge 0x41970f
shl eax, 4
lea eax, [eax + edi + 0xc]
mov dword [esp + 0x24], eax
fcom dword [eax]
fnstsw ax
test ah, 0x44
jp 0x4196ef
xor eax, eax
cmp dword [esi + 8], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], bind
mov dword [esp + 0x20], eax
jle 0x4196b7
mov ecx, dword [esi + 4]
cmp word [ecx + eax*8 + 6], 1
lea ecx, [ecx + eax*8]
je 0x419556
movzx edx, word [ecx]
cmp edx, dword [esp + 0x28]
jne 0x419556
mov ecx, dword [esi + 4]
mov word [ecx + eax*8 + 6], 1
mov edx, dword [esi + 4]
movzx eax, word [edx + eax*8 + 2]
lea esi, [ebx + eax*8]
mov dword [esp + 0x1c], esi
jmp 0x419392
mov ebx, eax
movzx ecx, word [esi + 4]
fstp st(0)
mov word [ebx + ecx*8 + 6], 1
movzx edx, word [esi + 4]
movzx eax, word [ebx + edx*8]
movzx ecx, word [esi]
lea edx, [ebx + edx*8]
movzx edx, word [edx + 4]
movzx edx, word [ebx + edx*8]
shl eax, 4
add eax, edi
shl ecx, 4
add ecx, edi
shl edx, 4
add edx, edi
fld dword [ecx]
fsub dword [eax]
fstp dword [esp + 0x60]
fld dword [ecx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x64]
fld dword [ecx + 8]
fsub dword [eax + 8]
fstp dword [esp + 0x68]
fld dword [edx]
fsub dword [eax]
fstp dword [esp + 0x70]
fld dword [edx + 4]
fsub dword [eax + 4]
fstp dword [esp + 0x74]
fld dword [edx + 8]
fsub dword [eax + 8]
mov eax, dword [esp + 0x48]
lea edi, [eax + 1]
mov ebx, eax
mov eax, dword [esp + 0x4c]
fstp dword [esp + 0x78]
and eax, 0x3fffffff
cmp eax, edi
jge 0x41942a
add eax, eax
cmp edi, eax
jl 0x41941a
mov eax, edi
push 0x10
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004026b0
add esp, 0xc
fld dword [esp + 0x78]
shl ebx, 4
fld st(0)
add ebx, dword [esp + 0x44]
fld dword [esp + 0x64]
mov dword [esp + 0x48], edi
fld st(0)
mov edi, ebx
fmulp st(2)
fld dword [esp + 0x74]
fld st(0)
fld dword [esp + 0x68]
fld st(0)
fmulp st(2)
fxch st(4)
fsubrp st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fst dword [edi]
fld dword [esp + 0x70]
fld st(0)
fmulp st(5)
fld dword [esp + 0x60]
fld st(0)
fmulp st(7)
fxch st(5)
fsubrp st(6)
fxch st(5)
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fst dword [edi + 4]
fxch st(2)
fmulp st(4)
fxch st(2)
fmulp st(4)
fxch st(2)
fsubrp st(3)
fxch st(2)
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fst dword [edi + 8]
fldz
fst dword [edi + 0xc]
fld st(2)
fld st(4)
fld st(3)
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 + 0x40]
fld st(0)
fld dword [esp + 0x40]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x4194f8
fstp st(4)
fstp st(2)
fstp st(0)
fstp st(0)
call fcn.0042eb10
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fld1
fdivrp st(1)
fstp dword [esp + 0x2c]
fld dword [esp + 0x38]
fld dword [esp + 0x34]
fld dword [esp + 0x30]
fldz
jmp 0x419504
fstp st(0)
fst dword [esp + 0x2c]
fxch st(1)
fxch st(3)
fxch st(1)
fld dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
fld st(0)
fmulp st(3)
fxch st(2)
fstp dword [edi]
fld st(1)
fmulp st(3)
fxch st(2)
fstp dword [edi + 4]
fld st(0)
fmulp st(3)
fxch st(2)
fstp dword [edi + 8]
fxch st(1)
fmul qword [0x4bea18]
fstp dword [edi + 0xc]
movzx ecx, word [esi + 4]
movzx edx, word [eax + ecx*8 + 2]
mov edi, dword [esp + 0x3c]
lea esi, [eax + edx*8]
cmp esi, dword [esp + 0x1c]
jne 0x419390
mov eax, dword [esp + 0x20]
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esi + 8]
mov dword [esp + 0x20], eax
jl 0x41934f
mov ecx, dword [esp + 0x48]
test ecx, ecx
jle 0x4196b7
mov eax, dword [esp + 0x44]
fst dword [esp + 0x58]
fst dword [esp + 0x54]
add eax, 8
fst dword [esp + 0x50]
fld dword [eax - 8]
add eax, 0x10
sub ecx, 1
fadd dword [esp + 0x50]
fstp dword [esp + 0x50]
fld dword [eax - 0x14]
fadd dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fadd dword [eax - 0x10]
fstp dword [esp + 0x58]
jne 0x419585
fld dword [esp + 0x50]
mov eax, dword [ebp + 0x14]
fld dword [esp + 0x54]
fld dword [esp + 0x58]
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 + 0x40]
fld dword [esp + 0x40]
fld dword [eax + 0xc]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4196b5
fstp dword [esp + 0x40]
fld st(0)
fld dword [esp + 0x40]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x419615
fstp st(1)
call fcn.0042eb10
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fld1
fdivrp st(1)
fstp dword [esp + 0x38]
fldz
jmp 0x41961b
fstp st(0)
fst dword [esp + 0x38]
fld dword [esp + 0x38]
xor ecx, ecx
cmp dword [esp + 0x48], ecx
fld st(0)
fmul dword [esp + 0x50]
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fmul st(1)
fstp dword [esp + 0x54]
fmul dword [esp + 0x58]
fstp dword [esp + 0x58]
jle 0x41969f
mov edx, dword [ebp + 0x14]
fld dword [edx + 0xc]
mov edx, dword [esp + 0x44]
fld1
add edx, 8
fsubrp st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x58]
fld dword [esp + 0x54]
fld dword [esp + 0x50]
fld dword [esp + 0x40]
fld dword [edx - 8]
fmul st(2)
fld dword [edx - 4]
fmul st(4)
faddp st(1)
fld st(4)
fmul dword [edx]
faddp st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x4196af
add ecx, 1
add edx, 0x10
cmp ecx, dword [esp + 0x48]
jl 0x419668
fstp st(3)
fstp st(1)
fstp st(0)
fstp st(0)
fld1
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x18]
fstp dword [eax]
mov byte [ecx], 1
jmp 0x4196b7
fstp st(3)
fstp st(1)
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x4c]
test eax, eax
js 0x4196ef
mov edx, dword [0x4c6060]
fstp st(0)
and eax, 0x3fffffff
push edx
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push 0x17
shl edx, 4
push edx
push ecx
mov ecx, eax
call fcn.004023e0
fldz
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add ecx, 1
add eax, 0x10
cmp ecx, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
jl 0x419323
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret